]> git.baikalelectronics.ru Git - kernel.git/commit
bridge: relay bridge multicast pkgs if !STP
authorStephen Hemminger <shemminger@vyatta.com>
Fri, 15 May 2009 06:10:13 +0000 (06:10 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 18 May 2009 04:12:54 +0000 (21:12 -0700)
commitc3dcce988fb576d3ab9c95e56556acc11d171357
tree8e1b255bf66b68c01e784a0e4b3e3179945bd3d2
parent738d3905a88cafba5d7b98c112f06505b428d064
bridge: relay bridge multicast pkgs if !STP

Currently the bridge catches all STP packets; even if STP is turned
off.  This prevents other systems (which do have STP turned on)
from being able to detect loops in the network.

With this patch, if STP is off, then any packet sent to the STP
multicast group address is forwarded to all ports.

Based on earlier patch by Joakim Tjernlund with changes
to go through forwarding (not local chain), and optimization
that only last octet needs to be checked.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_input.c