From 3fdc27aaad9cd644ddaae6f2dba6f13b5e78f27f Mon Sep 17 00:00:00 2001 From: Florian Westphal Date: Mon, 27 Apr 2015 21:48:33 +0200 Subject: 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 Signed-off-by: Pablo Neira Ayuso Signed-off-by: Jozsef Kadlecsik --- configure.ac | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index a6b86a9..c032bf6 100644 --- a/configure.ac +++ b/configure.ac @@ -406,6 +406,16 @@ else AC_SUBST(HAVE_ETHER_ADDR_COPY, undef) fi +AC_MSG_CHECKING([kernel source for nf_bridge_get_physindev]) +if test -f $ksourcedir/include/linux/netfilter_bridge.h && \ + $GREP -q 'nf_bridge_get_physindev' $ksourcedir/include/linux/netfilter_bridge.h; then + AC_MSG_RESULT(yes) + AC_SUBST(HAVE_NF_BRIDGE_GET_PHYSDEV, define) +else + AC_MSG_RESULT(no) + AC_SUBST(HAVE_NF_BRIDGE_GET_PHYSDEV, undef) +fi + AC_MSG_CHECKING([kernel source for struct net_generic]) if test -f $ksourcedir/include/net/netns/generic.h && \ $GREP -q 'struct net_generic' $ksourcedir/include/net/netns/generic.h; then -- cgit v1.2.3