* [Bridge] Discrepancy in setageing
@ 2010-06-23 16:04 Jeff Mitchell
2010-06-23 20:32 ` Nicolas de Pesloüan
0 siblings, 1 reply; 2+ messages in thread
From: Jeff Mitchell @ 2010-06-23 16:04 UTC (permalink / raw)
To: bridge
The documentation for Bridge at
http://www.linuxfoundation.org/collaborate/workgroups/networking/bridge
says the following of setageing:
====
The aging time is the number of seconds a MAC address will be
kept in the forwarding database after having received a packet
from this MAC address.
The entries in the forwarding database are periodically timed out
to ensure they won't stay around forever.
Normally there should be no need to modify this parameter,
but it can be changed with (time is in seconds).
# brctl setageing bridgename time
Setting ageing time to zero makes all entries permanent.
====
However, according to my testing, this parameter actually turns MAC
learning off; setting it to zero simply means that entries are never
added to the table.
Searching around the web reveals people with similar experiences.
Is the documentation incorrect, or am I missing something?
Thanks,
Jeff
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Bridge] Discrepancy in setageing
2010-06-23 16:04 [Bridge] Discrepancy in setageing Jeff Mitchell
@ 2010-06-23 20:32 ` Nicolas de Pesloüan
0 siblings, 0 replies; 2+ messages in thread
From: Nicolas de Pesloüan @ 2010-06-23 20:32 UTC (permalink / raw)
To: bridge
On 06/23/2010 18:04, Jeff Mitchell wrote:
> The documentation for Bridge at
> http://www.linuxfoundation.org/collaborate/workgroups/networking/bridge
> says the following of setageing:
>
> ====
>
> The aging time is the number of seconds a MAC address will be
> kept in the forwarding database after having received a packet
> from this MAC address.
> The entries in the forwarding database are periodically timed out
> to ensure they won't stay around forever.
> Normally there should be no need to modify this parameter,
> but it can be changed with (time is in seconds).
>
> # brctl setageing bridgename time
>
> Setting ageing time to zero makes all entries permanent.
>
> ====
>
> However, according to my testing, this parameter actually turns MAC
> learning off; setting it to zero simply means that entries are never
> added to the table.
Having a quick look at the code, I cannot find a special test for the value "0" for ageing_time nor
ageing_timer. So I assume that learned macs expire right after they are learned, hence your feeling
that mac learning is off.
Can someone double check my code revue, so we decide whether to fix the documentation or not ?
> Searching around the web reveals people with similar experiences.
>
> Is the documentation incorrect, or am I missing something?
>
> Thanks,
> Jeff
> _______________________________________________
> Bridge mailing list
> Bridge@lists.linux-foundation.org
> https://lists.linux-foundation.org/mailman/listinfo/bridge
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-06-23 20:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-23 16:04 [Bridge] Discrepancy in setageing Jeff Mitchell
2010-06-23 20:32 ` Nicolas de Pesloüan
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.