From 4d2e2437c20e62618ad0958e7ab0502c29c759e0 Mon Sep 17 00:00:00 2001 From: harti Date: Mon, 5 May 2003 16:35:52 +0000 Subject: Define a link layer MIB for ATM. Most fields of this MIB are needed by ILMI daemons. Factor out common softc fields for all ATM interfaces that need to be externally visible into an ifatm structure and make the midway driver using this structure and fill the MIB. --- sys/net/if_atmsubr.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sys/net/if_atmsubr.c') diff --git a/sys/net/if_atmsubr.c b/sys/net/if_atmsubr.c index ac1c8da..148c2ec 100644 --- a/sys/net/if_atmsubr.c +++ b/sys/net/if_atmsubr.c @@ -296,6 +296,7 @@ atm_ifattach(ifp) { struct ifaddr *ifa; struct sockaddr_dl *sdl; + struct ifatm *ifatm = ifp->if_softc; ifp->if_type = IFT_ATM; ifp->if_addrlen = 0; @@ -326,6 +327,8 @@ atm_ifattach(ifp) break; } + ifp->if_linkmib = &ifatm->mib; + ifp->if_linkmiblen = sizeof(ifatm->mib); } /* -- cgit v1.1