[tulip] SIOCGMIIPHY

Marinho Barcellos marinho@exatas.unisinos.br
Mon Dec 17 11:32:01 2001


Hello

anyone has any idea why a configuration operation (ioctl())
SIOCGMIIPHY on a socket might fail, considering it's a
Conexant board and as such has a MII transceiver?
(Info: kernel 2.4.8, driver tulip.c:v0.93 11/7/2001)

Error message:
[root@tyne diag]# mii-diag  -vw eth0
mii-diag.c:v2.00 4/19/2000  Donald Becker (becker@scyld.com)
http://www.scyld.com/diag/index.html
SIOCGMIIPHY on eth0 failed: Operation not supported

The above happens in the following section of code in mii-diag:

        /* Get the vitals from the interface. */
        strncpy(ifr.ifr_name, ifname, IFNAMSIZ);
        if (ioctl(skfd, SIOCGMIIPHY, &ifr) < 0) {
                fprintf(stderr, "SIOCGMIIPHY on %s failed: %s\n", ifname,
                        strerror(errno));
                (void) close(skfd);
        return 1;
}

Many thanks, Marinho.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-=
Prof. Marinho Barcellos      marinho@exatas.unisinos.br
PIP/CA - Centro 6            http://www.inf.unisinos.br/~marinho/ 
UNISINOS - Universidade do Vale do Rio dos Sinos
Av. Unisinos, 950            Phone: (051) 590-3333 ext.1639
Sao Leopoldo, RS, Brazil     CEP 93022-000     FAX 5908162
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-=