bridge: don't route packets while learning
authorStephen Hemminger <shemminger@linux-foundation.org>
Wed, 21 Mar 2007 20:42:06 +0000 (13:42 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Thu, 26 Apr 2007 05:28:45 +0000 (22:28 -0700)
commit467aea0ddfd1f0f1158c57cbef0e8941dd63374c
treeb5bcccfd80d189a67cd347940ceee916a8d5cf22
parent6229e362dd49b9e8387126bd4483ab0574d23e9c
bridge: don't route packets while learning

While in the STP learning state, don't route packets; wait until
forwarding delay has expired. The purpose of the forwarding delay
is to detect loops in the network, and if a brouter started up
and started forwarding, it could cause a flood.

Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
net/bridge/br_input.c