On Thu, 12 Oct 2006 16:10:44 -0400
Andy Gospodarek <[EMAIL PROTECTED]> wrote:

> 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 <[EMAIL PROTECTED]>
> > 
> 
> 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;
> 

Agreed, but it probably worked during testing because both flags
are strict booleans (ie 0/1)


-- 
Stephen Hemminger <[EMAIL PROTECTED]>
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to