diff options
| author | Luigi Rizzo <luigi@FreeBSD.org> | 2004-04-16 10:32:13 +0000 |
|---|---|---|
| committer | Luigi Rizzo <luigi@FreeBSD.org> | 2004-04-16 10:32:13 +0000 |
| commit | 9046571f1cef8c774a88f5c89964776fe6707dce (patch) | |
| tree | e69e29f43bb3dae2e8937aad4ea76e8430ca9a2e | |
| parent | d65d2351b065e7d3e2845c75a6116257eecdd8f7 (diff) | |
Notes
| -rw-r--r-- | sys/net/if.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/net/if.c b/sys/net/if.c index 534bdcfec72e3..5769129316584 100644 --- a/sys/net/if.c +++ b/sys/net/if.c @@ -456,7 +456,7 @@ if_attachdomain(void *dummy) int s; s = splnet(); - for (ifp = TAILQ_FIRST(&ifnet); ifp; ifp = TAILQ_NEXT(ifp, if_list)) + TAILQ_FOREACH(ifp, &ifnet, if_link) if_attachdomain1(ifp); splx(s); } @@ -1978,6 +1978,11 @@ if_setlladdr(struct ifnet *ifp, const u_char *lladdr, int len) case IFT_ISO88025: case IFT_L2VLAN: bcopy(lladdr, ((struct arpcom *)ifp->if_softc)->ac_enaddr, len); + /* + * XXX We also need to store the lladdr in LLADDR(sdl), + * which is done below. This is a pain because we must + * remember to keep the info in sync. + */ /* FALLTHROUGH */ case IFT_ARCNET: bcopy(lladdr, LLADDR(sdl), len); |
