|
|
|
|
|
|
| Author |
Message |
Josh Birnbaum *nix forums beginner
Joined: 02 Apr 2005
Posts: 25
|
Posted: Thu Feb 24, 2005 5:52 pm Post subject:
IFF_LINKDOWN and Carrier Detect
|
|
|
Hi Folks,
Does anyone have any sample code to detect that a network link
has gone down? syslogd on my Indy R5000 running IRIX 6.5.22m
writes the following to /var/adm/SYSLOG in such situations:
Feb 24 02:56:17 1A:IRIS unix: |$(0xd3)ALERT: ec0: no carrier: \
check Ethernet cable
I was looking through /usr/include and found the IFF_LINKDOWN
define directive in net/if.h. I tried passing this to ioctl(2)
after having passed the SIOCGIFFLAGS command to a previous
ioctl(2) call but no go.
Additional probing has me thinking that IFF_LINKDOWN is not
what I'm after.
Any info re the above would be appreciated.
Thanks,
Josh. |
|
| Back to top |
|
 |
Google
|
|
| Back to top |
|
 |
|
|
The time now is Thu Jan 08, 2009 1:02 am | All times are GMT
|
|
Loans | Problem Mortgage | Credit Cards | Problem Mortgage | Credit Cards
|
|
Copyright © 2004-2005 DeniX Solutions SRL
|
|
|
|
Other DeniX Solutions sites:
Unix/Linux blog |
electronics forum |
medicine forum |
science forum |
|
|
Privacy Policy
|
Powered by phpBB © 2001, 2005 phpBB Group
|
|