diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2014-10-02 09:13:21 (GMT) |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2014-10-02 16:30:57 (GMT) |
commit | 4b7fd5d97ee6e599247b4a55122ca6ba80c8148d (patch) | |
tree | f79ecdd32fb619bcf982dcb493997f2285311a92 /include/net/netfilter | |
parent | 36d2af5998258344993dd43729997a7a3baa9d99 (diff) | |
download | linux-4b7fd5d97ee6e599247b4a55122ca6ba80c8148d.tar.xz |
netfilter: explicit module dependency between br_netfilter and physdev
You can use physdev to match the physical interface enslaved to the
bridge device. This information is stored in skb->nf_bridge and it is
set up by br_netfilter. So, this is only available when iptables is
used from the bridge netfilter path.
Since 34666d4 ("netfilter: bridge: move br_netfilter out of the core"),
the br_netfilter code is modular. To reduce the impact of this change,
we can autoload the br_netfilter if the physdev match is used since
we assume that the users need br_netfilter in place.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/net/netfilter')
-rw-r--r-- | include/net/netfilter/br_netfilter.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/net/netfilter/br_netfilter.h b/include/net/netfilter/br_netfilter.h new file mode 100644 index 0000000..2aa6048 --- /dev/null +++ b/include/net/netfilter/br_netfilter.h @@ -0,0 +1,6 @@ +#ifndef _BR_NETFILTER_H_ +#define _BR_NETFILTER_H_ + +void br_netfilter_enable(void); + +#endif /* _BR_NETFILTER_H_ */ |