Re: detecting ethernet link up/down from user program

Bogdan Costescu <[email protected]> Mon, 5 Sep 2005 14:13:47 +0200 (CEST)
Newsgroups gmane.linux.drivers.vortex.devel
Message-ID <Pine.LNX.4.44.0509051411380.19941-100000@kenzo.iwr.uni-heidelberg.de>
On Wed, 31 Aug 2005, vinay kumar wrote:

> I want to write a user program which could detect link up/down event on 
> network interface. 

Look in the archive of the "netdev" mailing list for "netlink".

However, the netlink messages are only generated when the driver 
detects the link up/down event. For 3c59x driver, this is timer 
driven, so it might take some time (up to 60 seconds for MII capable 
cards) from the time the link has change state until the situation is 
detected.

-- 
Bogdan Costescu

IWR - Interdisziplinaeres Zentrum fuer Wissenschaftliches Rechnen
Universitaet Heidelberg, INF 368, D-69120 Heidelberg, GERMANY
Telephone: +49 6221 54 8869, Telefax: +49 6221 54 8868
E-mail: [email protected]

_______________________________________________
vortex mailing list
[email protected]
http://www.scyld.com/mailman/listinfo/vortex