[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
in
>my application I get a segfault, probably because I am not supposed to
be
>doing this this way, or I missed something.  Does anyone know how to
get
>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
probably
to download the ethtool application.

/Mikael