[Bridge] [PATCH] bridge: flush forwarding table when device carrier off

Andy Gospodarek andy at greyhouse.net
Thu Oct 12 13:10:44 PDT 2006


On Thu, Oct 12, 2006 at 11:24:31AM -0700, Stephen Hemminger wrote:
> Flush the forwarding table when carrier is lost. This helps for
> availability because we don't want to forward to a downed device and
> new packets may come in on other links.
> 
> Signed-off-by: Stephen Hemminger <shemminger at osdl.org>
> 

Stephen,

This is an excellent idea and all looks good except this check

+			if (f->is_static & !do_all)
+				continue;

should be this: 

+			if (f->is_static && !do_all)
+				continue;

I'll ACK a repost with that change.

-andy





More information about the Bridge mailing list