diff options
author | harti <harti@FreeBSD.org> | 2003-05-05 16:35:52 +0000 |
---|---|---|
committer | harti <harti@FreeBSD.org> | 2003-05-05 16:35:52 +0000 |
commit | 4d2e2437c20e62618ad0958e7ab0502c29c759e0 (patch) | |
tree | 07086a2f5c777d2ccea4d0bdcec8c1f59fb51973 /sys/net/if_atmsubr.c | |
parent | 1e484c95bf637cabbbb0bc1ff304f68bdb653f82 (diff) | |
download | FreeBSD-src-4d2e2437c20e62618ad0958e7ab0502c29c759e0.zip FreeBSD-src-4d2e2437c20e62618ad0958e7ab0502c29c759e0.tar.gz |
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.
Diffstat (limited to 'sys/net/if_atmsubr.c')
-rw-r--r-- | sys/net/if_atmsubr.c | 3 |
1 files changed, 3 insertions, 0 deletions
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); } /* |