Re: detecting the link failure of an interface

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

 



--- nitin panjwani <nitin_rpr@yahoo.com> wrote:

> Is there a way to detect the link failure of an
> interface. As if we run routing and link shuts on an
> interface, down it doesn't bring the interface.. which
> is really a bad thing for real time networks.
 
  Check the source of the bonding driver 
(drivers/net/bonding.c), specifically the function
bond_check_dev_link(). It tries three ioctl's to
find out the link status. I beleive most network
drivers at least support one of these ioctls. 

Hope this helps,
Ravi.

__________________________________________________
Do you Yahoo!?
Yahoo! Web Hosting - Let the expert host your site
http://webhosting.yahoo.com
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux