diff options
| author | Luigi Rizzo <luigi@FreeBSD.org> | 2004-04-15 20:31:10 +0000 |
|---|---|---|
| committer | Luigi Rizzo <luigi@FreeBSD.org> | 2004-04-15 20:31:10 +0000 |
| commit | 0318355d0e0c749359d4d8d384fb34240e4b1a4e (patch) | |
| tree | 5724ee7f72224819d2453cd24c370e176d84429f /sys/dev/sn | |
| parent | 621b79c4d51d496d8d2c2d4b6f54f2c53b390aa6 (diff) | |
Notes
Diffstat (limited to 'sys/dev/sn')
| -rw-r--r-- | sys/dev/sn/if_sn.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/sys/dev/sn/if_sn.c b/sys/dev/sn/if_sn.c index f65aadaf90e5..57925fa866a6 100644 --- a/sys/dev/sn/if_sn.c +++ b/sys/dev/sn/if_sn.c @@ -216,24 +216,6 @@ sn_attach(device_t dev) ether_ifattach(ifp, sc->arpcom.ac_enaddr); /* - * Fill the hardware address into ifa_addr if we find an AF_LINK - * entry. We need to do this so bpf's can get the hardware addr of - * this card. netstat likes this too! - */ - ifa = TAILQ_FIRST(&ifp->if_addrhead); - while ((ifa != 0) && (ifa->ifa_addr != 0) && - (ifa->ifa_addr->sa_family != AF_LINK)) - ifa = TAILQ_NEXT(ifa, ifa_link); - - if ((ifa != 0) && (ifa->ifa_addr != 0)) { - sdl = (struct sockaddr_dl *) ifa->ifa_addr; - sdl->sdl_type = IFT_ETHER; - sdl->sdl_alen = ETHER_ADDR_LEN; - sdl->sdl_slen = 0; - bcopy(sc->arpcom.ac_enaddr, LLADDR(sdl), ETHER_ADDR_LEN); - } - - /* * Activate the interrupt so we can get card interrupts. This * needs to be done last so that we don't have/hold the lock * during startup to avoid LORs in the network layer. |
