Skip to contentSkip to conversation

Discrepancy in setageing

Bridge Jeff Mitchell 2 participants 2 messages Jun 23, 2010 Ethernet bridge

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 16 lines · Jeff Mitchell

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
Quoted 7 lines

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 ?

Quoted 11 lines

Searching around the web reveals people with similar experiences.

Is the documentation incorrect, or am I missing something?

Thanks,
Jeff
_______________________________________________
Bridge mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/bridge