[Bridge] how to get port status (spanning tree)

Sébastien JEFFROY sebastien.jeffroy.cxr at gmail.com
Tue Apr 29 07:37:39 PDT 2008


Hi all,
I'm working on an hardware switch and I try to implement spanning tree.
I need to modify the linux bridge to get bridge port status because i have
to set hardware registers in my switch.
I looked in bridge source code and I found br_log_state() function.
This function is called by br_make_forwarding() and br_make_blocking().

I plan to add some code to send IOCTLS to my switch driver when port state
change.

Is there one function that is called when state changed ?
I need to have the 5 states ?

Best Regards,
Sébastien JEFFROY
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.linux-foundation.org/pipermail/bridge/attachments/20080429/db5e1467/attachment.htm 


More information about the Bridge mailing list