]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
netfilter: bridge: fix IPv6 packets not being bridged with CONFIG_IPV6=n
authorBernhard Thaler <bernhard.thaler@wvnet.at>
Thu, 13 Aug 2015 06:58:15 +0000 (08:58 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 19 Aug 2015 19:21:41 +0000 (21:21 +0200)
commit18e1db67e93ed75d9dc0d34c8d783ccf10547c2b
treee1400ac43401b172cf5364615b658d274fac071c
parentbf798657eb5ba57552096843c315f096fdf9b715
netfilter: bridge: fix IPv6 packets not being bridged with CONFIG_IPV6=n

230ac490f7fba introduced a dependency to CONFIG_IPV6 which breaks bridging
of IPv6 packets on a bridge with CONFIG_IPV6=n.

Sysctl entry /proc/sys/net/bridge/bridge-nf-call-ip6tables defaults to 1,
for this reason packets are handled by br_nf_pre_routing_ipv6(). When compiled
with CONFIG_IPV6=n this function returns NF_DROP but should return NF_ACCEPT
to let packets through.

Change CONFIG_IPV6=n br_nf_pre_routing_ipv6() return value to NF_ACCEPT.

Tested with a simple bridge with two interfaces and IPv6 packets trying
to pass from host on left side to host on right side of the bridge.

Fixes: 230ac490f7fba ("netfilter: bridge: split ipv6 code into separated file")
Signed-off-by: Bernhard Thaler <bernhard.thaler@wvnet.at>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/net/netfilter/br_netfilter.h