[PATCH] net/bridge: Fix dropping packets that moving through bridge interface

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Artur Molchanov <artur.molchanov@xxxxxxxxxx>

Fixes: c5136b15ea36 ("netfilter: bridge: add and use br_nf_hook_thresh")

Problem:
br_nf_pre_routing_finish() calls itself instead of
br_nf_pre_routing_finish_bridge().
Due to this bug reverse path filter drops packets that moving through
bridge interface.

User impact:
Local docker containers with bridge network can not communicate with
each other.

Signed-off-by: Artur Molchanov <artur.molchanov@xxxxxxxxxx>
---
 net/bridge/br_netfilter_hooks.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/bridge/br_netfilter_hooks.c b/net/bridge/br_netfilter_hooks.c
index 8ca6a92..95087e6 100644
--- a/net/bridge/br_netfilter_hooks.c
+++ b/net/bridge/br_netfilter_hooks.c
@@ -399,7 +399,7 @@ static int br_nf_pre_routing_finish(struct net *net, struct sock *sk, struct sk_
                 br_nf_hook_thresh(NF_BR_PRE_ROUTING,
                           net, sk, skb, skb->dev,
                           NULL,
-                          br_nf_pre_routing_finish);
+                          br_nf_pre_routing_finish_bridge);
                 return 0;
             }
             ether_addr_copy(eth_hdr(skb)->h_dest, dev->dev_addr);
--
2.8.3
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux