Re: SIOCGMIIPHY for sungem
On Fri, 2002-10-11 at 10:40, Vincent Bernat wrote:
> 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 ?
Did you fix the problem in the kernel as per Jeff Garzik's advice ? I
guess not, then you need to run as root.
Cheers
--
/Bastien Nocera
http://hadess.net
Reply to: