[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Detecting Ethernet link and setting TCP timeout

>I see it call mdio function to get the Ethernet speed but when I try it
>my application I get a segfault, probably because I am not supposed to
>doing this this way, or I missed something.  Does anyone know how to
>this information?

There is a set of ioctls to get this. Specifically the ETHTOOL_GSET will
return info such as current speed and duplex. The easiest way is
to download the ethtool application.