Connecting Tech Pros Worldwide Forums | Help | Site Map

How I know the net card is link off?

canbaby
Guest
 
Posts: n/a
#1: Nov 15 '05
In linux, c program, How I know the net card's link is off?
I had no idea now.
Thanks


Stephan Ferraro
Guest
 
Posts: n/a
#2: Nov 15 '05

re: How I know the net card is link off?


canbaby wrote:[color=blue]
> In linux, c program, How I know the net card's link is off?
> I had no idea now.[/color]

It's not ANSI C but I will answer you always:
Probably with an ioctl call but I'm not sure.
Try to get and understand the source code of the package "mii-tool" in
Linux.
http://nibiru.borg.metux.de:7000/wik...x.php/mii-tool

--
Best regards,
Stephan FERRARO - NOOFS Core Developper
{ EPITECH. } 5th year computer science student in Paris.
Joe Wright
Guest
 
Posts: n/a
#3: Nov 15 '05

re: How I know the net card is link off?


canbaby wrote:[color=blue]
> In linux, c program, How I know the net card's link is off?
> I had no idea now.
> Thanks
>[/color]
What do you think "net card's link is off" means in a C language group?
Go away now, get a clue, and if you still need c.l.c, come on back.

--
Joe Wright
"Everything should be made as simple as possible, but not simpler."
--- Albert Einstein ---
canbaby
Guest
 
Posts: n/a
#4: Nov 15 '05

re: How I know the net card is link off?


Can you gave me a clue? If you had a clue.
I know I get in the wrong door, sorry.

canbaby
Guest
 
Posts: n/a
#5: Nov 15 '05

re: How I know the net card is link off?


I try it, all run ok, thanks.

Closed Thread