31 Mar
2017
31 Mar
'17
9:20 a.m.
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