netfilter: bridge: add helpers for fetching physin/outdev
authorFlorian Westphal <fw@strlen.de>
Thu, 2 Apr 2015 12:31:41 +0000 (14:31 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 8 Apr 2015 14:49:08 +0000 (16:49 +0200)
commitc737b7c4510026c200e14de51eb0006adea0fb2f
tree4f9e007c999e42652ca111d22edf2cfeb99c2954
parente70deecbf8e1562cac0b19f23848919e2f5d65aa
netfilter: bridge: add helpers for fetching physin/outdev

right now we store this in the nf_bridge_info struct, accessible
via skb->nf_bridge.  This patch prepares removal of this pointer from skb:

Instead of using skb->nf_bridge->x, we use helpers to obtain the in/out
device (or ifindexes).

Followup patches to netfilter will then allow nf_bridge_info to be
obtained by a call into the br_netfilter core, rather than keeping a
pointer to it in sk_buff.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/linux/netfilter_bridge.h
net/ipv4/netfilter/nf_reject_ipv4.c
net/ipv6/netfilter/nf_reject_ipv6.c
net/netfilter/ipset/ip_set_hash_netiface.c
net/netfilter/nf_log_common.c
net/netfilter/nf_queue.c
net/netfilter/nfnetlink_log.c
net/netfilter/nfnetlink_queue_core.c