]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9ea247ea5bd6ba2d88f95b3e14b8f8ad4358fbe1
tree4f9e007c999e42652ca111d22edf2cfeb99c2954
parentb1782b543d5983f64d15d77e271558e20e0384c8
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