ethernet cable state recognition

From: Claudio Melis (tziu.mebi_at_tiscali.it)
Date: 04/29/04


Date: 29 Apr 2004 07:57:25 -0700

Hi to everyone.
I need to write a little application to recognize if the ethernet
cable is up or down. Not ethernet interface but really ethernet cable.
Someone can tell me where I will start? I try to see some files in
/proc/ directory but everithing "speak" about interface state.
I also tryed to start to write a simple C program. In this program I
read the infos in the ifreq structure like ifr_flags but I didn't find
the infos that I want.
I want to say that my kernel doesn's recognize cable state when I put
in/out it.
I must insert something in my kernel configuration?

I hope in some help...

Claudio Melis



Relevant Pages

  • Problem in compiling Router driver for ubuntu...
    ... This driver supports Linux-2.4 kernel. ... configured for LAN, shutdown the ethernet interface: ... The ethernet interface associated with the VKGEther driver was "eth1" ...
    (Ubuntu)
  • Problem with router usb driver...
    ... This driver supports Linux-2.4 kernel. ... configured for LAN, shutdown the ethernet interface: ... The ethernet interface associated with the VKGEther driver was "eth1" ...
    (Ubuntu)
  • Re: Looking for the "Unipod directory in Apps"
    ... If I had a Ethernet interface doing 40 Mbps for the RiscPC I would be ... Almost all SoCs that provide USB only provide USB 2.0 High Speed ... There simply is none that I would want as a replacement for my RiscPC. ...
    (comp.sys.acorn.hardware)
  • Re: maybe forbidden
    ... You can't add arbitrary routes to an ethernet interface because ... This route asks the host to send a packet bound for, say, ... to assign the interface an IP address inside that network. ...
    (comp.os.linux.networking)
  • Ethernet Redundancy on VxWorks 5.5
    ... I have a board with the MPC 866 processor, two ethernet interface eth0 ... How does anybody implement this form of redundancy? ...
    (comp.os.vxworks)