netfilter: nf_tables: fib: use skb_header_pointer
authorPablo M. Bermudo Garay <pablombg@gmail.com>
Thu, 20 Jul 2017 23:54:37 +0000 (01:54 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 31 Jul 2017 17:01:39 +0000 (19:01 +0200)
commitf347ec852c7a83e1803192d2c1fce4e42e0715a5
tree1edb8892ad7ed553c91042b04019443f5eebea88
parent784b4e612d42a2b7578d7fab2ed78940e10536bc
netfilter: nf_tables: fib: use skb_header_pointer

This is a preparatory patch for adding fib support to the netdev family.

The netdev family receives the packets from ingress hook. At this point
we have no guarantee that the ip header is linear. So this patch
replaces ip_hdr with skb_header_pointer in order to address that
possible situation.

Signed-off-by: Pablo M. Bermudo Garay <pablombg@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/ipv4/netfilter/nft_fib_ipv4.c
net/ipv6/netfilter/nft_fib_ipv6.c