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

Re: SIOCGMIIPHY for sungem

On Fri, 2002-10-11 at 10:12, Vincent Bernat wrote:
> Hello !
> 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

I didn't get to cook up a quick patch yet.


/Bastien Nocera

Reply to: