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

Re: SIOCGMIIPHY for sungem



OoO En cette fin de matinée radieuse du vendredi 11 octobre 2002, vers
11:27, Bastien Nocera <hadess@hadess.net> disait:

>> I am trying to detect if there is a cable plugged in the network card
>> however, sungem driver does not seem to support SIOCGMIIPHY. Is there
>> some work around to get the link status ?

> ethtool works. And if you want to run it as a normal user, fix this:
> <jgarzik> hadess: net/core/dev.c, the calls to dev_ifsioc require 
> CAP_NET_ADMIN, even the get-info ioctls

Most flags return "Operation not permitted". What is the flag to use
to get the link status ?
-- 
Don't just echo the code with comments - make every comment count.
            - The Elements of Programming Style (Kernighan & Plaugher)



Reply to: