niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » *nix » SGI/IRIX
IFF_LINKDOWN and Carrier Detect
Post new topic   Reply to topic Page 1 of 1 [1 Post] View previous topic :: View next topic
Author Message
Josh Birnbaum
*nix forums beginner


Joined: 02 Apr 2005
Posts: 25

PostPosted: Thu Feb 24, 2005 5:52 pm    Post subject: IFF_LINKDOWN and Carrier Detect Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [1 Post] View previous topic :: View next topic
The time now is Thu Jan 08, 2009 1:02 am | All times are GMT
navigation Forum index » *nix » SGI/IRIX
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Unable to detect HDD infoshirish hardware 0 Wed Jun 06, 2007 11:12 am
No new posts Unable to detect HDD infoshirish hardware 0 Wed Jun 06, 2007 11:11 am
No new posts Unable to detect HDD infoshirish Distributions 0 Wed Jun 06, 2007 11:09 am
No new posts How to detect an empty file? Olivier C 0 Mon Jul 10, 2006 6:54 pm
No new posts How to detect an empty file? Olivier C 32 Mon Jul 10, 2006 6:53 pm

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
[ Time: 0.1273s ][ Queries: 16 (0.0600s) ][ GZIP on - Debug on ]