Re: Physical link notification

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

 



On Sat, 22 Feb 2003 11:34:04 +0530
"Krishnakumar. R" <krishnakumar@naturesoft.net> wrote:

> Hi,
> 
> Is there any way I can detect whether 
> the physical link is connected to the
> network device. 
> 
> That is when the ethernet cable is removed
> from the network card a userland call back
> function should be invoked.
> Is there any such provision existing already for this.
> 
> If there is no userland method
> is there a way to detect this from the
> driver code of say 8139 driver ?

You should use MII-tools, but they don't work with all rtl8139 cards(
with one of mine it doesn't).
Here is patch against 2.4.19-pre8, which can be probably clearly applied
against later trees.
It adds /proc/8139too entry, which one can see, if link is ok or not.

> Thanks in advance.
> Regards
> KK

	Evgeniy Polyakov ( s0mbre )

Attachment: _drivers_net_8139too_c.diff
Description: Binary data


[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