Link Speed from the Kernel and OSPF and BSD

Donald Sharp sharpd at cumulusnetworks.com
Fri Mar 31 05:20:18 EDT 2017


OSPF currently sets the cost for an interface based upon the default
bandwidth or the bandwidth configured by the user:

  bw = oi->ifp->bandwidth ? oi->ifp->bandwidth : OSPF_DEFAULT_BANDWIDTH;

ifp->bandwidth is a cli only value.

Obviously it would be pretty cool(tm) if OSPF were to take the actual
link speed of the interface.  I have some code that figures this out
for linux via the SIOCETHTOOL ioctl.  Does anyone know if this exists
for *bsd or what the appropriate command to use is?

donald




More information about the dev mailing list