Date: Wed, 31 Mar 2004 17:27:59 +0200 From: Gerald Heinig <gheinig@syskonnect.de> To: hackers@freebsd.org Subject: sysctl and ifmibdata/ifmib_iso_8802_3 Message-ID: <406AE37F.6F0584BF@syskonnect.de>
next in thread | raw e-mail | index | archive | help
Hi, I have a question regarding the use of sysctl and snmp MIBs for network adapters. I've taken a look at the ifmib(4) manpage and the corresponding files in ...sys/net/if_mib.c and /usr/include/net/if_mib.h and it seems that only a few network drivers declare the ifmib structures. When I try to declare them in my driver[1], nothing happens, ie. I can't see the structure. snmpwalk gives nothing and sysctl net.link.generic.ifmib is empty. Is any of this stuff implemented at all, or is it deprecated or what? It Just Doesn't Work. Anyone know any more about this? Thanks for any info, Gerald [1] To be exact: struct yk_softc { ... struct ifmib_iso_8802_3 yk_ethermib; ... } in yk_attach(): struct ifnet *yk_if; struct yk_softc *sc; ... ... yk_if->if_linkmib = &sc->yk_ethermib; yk_if->if_linkmiblen = sizeof(struct ifmib_iso_8802_3); -- S y s K o n n e c t G m b H A Marvell Company Siemensstr. 23 D-76275 Ettlingen, Germany --------------------------------- Gerald Heinig Software Engineer ------------------------------------- phone: + 49 (0) 7243 502 354 fax: +49 (0) 7243 502 364 email: gheinig@syskonnect.de http://www.syskonnect.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?406AE37F.6F0584BF>