1 #ifndef _NF_TABLES_IPV4_H_
2 #define _NF_TABLES_IPV4_H_
4 #include <net/netfilter/nf_tables.h>
8 nft_set_pktinfo_ipv4(struct nft_pktinfo
*pkt
,
10 const struct nf_hook_state
*state
)
14 nft_set_pktinfo(pkt
, skb
, state
);
16 ip
= ip_hdr(pkt
->skb
);
17 pkt
->tprot
= ip
->protocol
;
18 pkt
->xt
.thoff
= ip_hdrlen(pkt
->skb
);
19 pkt
->xt
.fragoff
= ntohs(ip
->frag_off
) & IP_OFFSET
;
22 extern struct nft_af_info nft_af_ipv4
;
This page took 0.03153 seconds and 6 git commands to generate.