diff options
| author | Matthew N. Dodd <mdodd@FreeBSD.org> | 2002-03-29 10:23:42 +0000 |
|---|---|---|
| committer | Matthew N. Dodd <mdodd@FreeBSD.org> | 2002-03-29 10:23:42 +0000 |
| commit | 1874a925272f79e8a0b9e0aa8ee15bb2635b3200 (patch) | |
| tree | 069b48d92e5305d6eb8e134c5093d17f6e0cefab | |
| parent | 11b0248c669a8bb7aeff74d598f4dd6ef1fdf041 (diff) | |
Notes
| -rw-r--r-- | sys/net/if_fddisubr.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/net/if_fddisubr.c b/sys/net/if_fddisubr.c index 85be45939d67..ba2f45f52cf8 100644 --- a/sys/net/if_fddisubr.c +++ b/sys/net/if_fddisubr.c @@ -271,6 +271,9 @@ fddi_output(ifp, m, dst, rt0) senderr(EAFNOSUPPORT); } + /* + * Add LLC header. + */ if (type != 0) { struct llc *l; M_PREPEND(m, LLC_SNAPFRAMELEN, M_DONTWAIT); @@ -510,6 +513,7 @@ dropanyway: m_freem(m); return; } + /* * Perform common duties while attaching to interface list */ @@ -534,7 +538,6 @@ fddi_ifattach(ifp) #ifdef IFF_NOTRAILERS ifp->if_flags |= IFF_NOTRAILERS; #endif - ifp->if_broadcastaddr = fddibroadcastaddr; ifa = ifaddr_byindex(ifp->if_index); if (ifa == NULL) { printf("%s(): no lladdr for %s%d!\n", __FUNCTION__, @@ -542,7 +545,6 @@ fddi_ifattach(ifp) return; } - ifa = ifaddr_byindex(ifp->if_index); sdl = (struct sockaddr_dl *)ifa->ifa_addr; sdl->sdl_type = IFT_FDDI; sdl->sdl_alen = ifp->if_addrlen; |
