Re: link up and don on ether async notification

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

 



On Thu, 31 May 2007 22:56:13 +0200
mbartolo <mb4rt0l0@xxxxxxxxx> wrote:

> Hi boys,
> 
> Is some mechanism which can I  use to notify user space program 
> asynochronously that link on my ethernet device is is down or up  ? ( I can't 
> use polling like ethtool - i think that control every second state of link on 
> ethernet through some of ioctl  is no good). 

Use netlink to monitor the device. read source in iproute2/ip/ipmon.c to get
the general idea.


> Is good idea to use inotify on file  /sys/class/net/eth0/carrier ?

Please NO

> thanks for suggestion
> 


-- 
Stephen Hemminger <shemminger@xxxxxxxxxxxxxxxxxxxx>
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux