[MBT] new ticket for pkg net-tools "mii-tool fails (BAD ioctl) on 2.6 systems"

bugs at pld-linux.org bugs at pld-linux.org
Tue Apr 20 00:42:17 CEST 2004


Date: 2004-04-20 00:42:15+02	Author: Jacek Misiurewicz (mjacek) <jmisiure at elka.pw.edu.pl> 
Title:         mii-tool fails (BAD ioctl) on 2.6 systems
Ticket ID:     #890
Ticket URL:    http://bugs.pld-linux.org/?bug=890
Package:       net-tools-1:1.60-11
Distribution:  PLD-2.0.main
Category:      unknown
Current state: opened
Text:

On a system with 
(current) 2.6.5 kernel
sis900 eth0 module

mii-tool fails with:

SIOCGMIIPHY on 'eth0' failed: Operation not supported
no MII interfaces found

- listing of sis900.c reveals it IS supported 

- strace reveals that mii-tool calls 
ioctl(5, 0x89f0, 0x804b580)


when /usr/include/linux/sockios.h declares:
#define SIOCGMIIPHY        0x8947



I think mii-tool should just be recompiled for 2.6 series....

As I guess, there has been a change in these IOCTLS (old mii-tool stopped working with change 2.4->2.6, if I remember well)




More information about the pld-bugs mailing list