]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb6050523dbc0f2a890356b32413036201999468b
tree1edb8892ad7ed553c91042b04019443f5eebea88
parent7127e879530c408683eb167bdd798b2e41108b36
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