diff options
author | Stephen Hemminger <shemminger@linux-foundation.org> | 2007-08-30 22:15:35 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2007-08-30 22:15:35 -0700 |
commit | df1c0b8468b34628ed12b103804a4576cd9af8bb (patch) | |
tree | 415a646ecbec816b1ee415768e25987b91e08129 /net/bridge/br_input.c | |
parent | b91ddd843751947e2f81dfc8a86c5c21cbe07158 (diff) | |
download | blackbird-op-linux-df1c0b8468b34628ed12b103804a4576cd9af8bb.tar.gz blackbird-op-linux-df1c0b8468b34628ed12b103804a4576cd9af8bb.zip |
[BRIDGE]: Packets leaking out of disabled/blocked ports.
This patch fixes some packet leakage in bridge. The bridging code was
allowing forward table entries to be generated even if a device was
being blocked. The fix is to not add forwarding database entries
unless the port is active.
The bug arose as part of the conversion to processing STP frames
through normal receive path (in 2.6.17).
Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
Acked-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/bridge/br_input.c')
-rw-r--r-- | net/bridge/br_input.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/bridge/br_input.c b/net/bridge/br_input.c index 5c18595b7616..6f468fc3357a 100644 --- a/net/bridge/br_input.c +++ b/net/bridge/br_input.c @@ -101,9 +101,8 @@ static int br_handle_local_finish(struct sk_buff *skb) { struct net_bridge_port *p = rcu_dereference(skb->dev->br_port); - if (p && p->state != BR_STATE_DISABLED) + if (p) br_fdb_update(p->br, p, eth_hdr(skb)->h_source); - return 0; /* process further */ } |