Re: Detecting link up

Michael Tokarev
2005-05-18T17:33:09Z

Martin Zwickel wrote:
> On Wed, 18 May 2005 11:35:12 +0100
> Filipe Abrantes <fla@inescporto.pt> bubbled:
>
>>Hi all,
>>
>>I need to detect when an interface (wired ethernet) has link up/down.
>>Is there a system signal which is sent when this happens? What is the
>>best way to this programatically?
>
> mii-tool?

BTW, it might be a good idea to trigger some hotplug event on
interface up/down... or just send a netlink message. instead of
polling the interface. The same applies to removable media too
(CD or ZIP drive).

/mjt