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,
9 const struct nf_hook_ops *ops,
11 const struct net_device *in,
12 const struct net_device *out)
16 nft_set_pktinfo(pkt, ops, skb, in, out);
18 ip = ip_hdr(pkt->skb);
19 pkt->tprot = ip->protocol;
20 pkt->xt.thoff = ip_hdrlen(pkt->skb);
21 pkt->xt.fragoff = ntohs(ip->frag_off) & IP_OFFSET;
24 extern struct nft_af_info nft_af_ipv4;