diff options
author | wollman <wollman@FreeBSD.org> | 1996-12-13 21:29:07 +0000 |
---|---|---|
committer | wollman <wollman@FreeBSD.org> | 1996-12-13 21:29:07 +0000 |
commit | 3417f9411098d1cd19c5db539c0768e778b83a1c (patch) | |
tree | 782c07e423375f5e3235e7a677261301a91e59c6 /sys/i386/isa/if_el.c | |
parent | 4ad813db29ba756a35db6540961c86a4c1f5592b (diff) | |
download | FreeBSD-src-3417f9411098d1cd19c5db539c0768e778b83a1c.zip FreeBSD-src-3417f9411098d1cd19c5db539c0768e778b83a1c.tar.gz |
Convert the interface address and IP interface address structures
to TAILQs. Fix places which referenced these for no good reason
that I can see (the references remain, but were fixed to compile
again; they are still questionable).
Diffstat (limited to 'sys/i386/isa/if_el.c')
-rw-r--r-- | sys/i386/isa/if_el.c | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/sys/i386/isa/if_el.c b/sys/i386/isa/if_el.c index afa08ae..3338aee 100644 --- a/sys/i386/isa/if_el.c +++ b/sys/i386/isa/if_el.c @@ -6,7 +6,7 @@ * * Questions, comments, bug reports and fixes to kimmel@cs.umass.edu. * - * $Id: if_el.c,v 1.25 1996/08/06 21:14:04 phk Exp $ + * $Id: if_el.c,v 1.26 1996/09/06 23:07:32 phk Exp $ */ /* Except of course for the portions of code lifted from other FreeBSD * drivers (mainly elread, elget and el_ioctl) @@ -191,21 +191,6 @@ el_attach(struct isa_device *idev) if_attach(ifp); ether_ifattach(ifp); - /* Put the station address in the ifa address list's AF_LINK - * entry, if any. - */ - ifa = ifp->if_addrlist; - while ((ifa != NULL) && (ifa->ifa_addr != NULL) && - (ifa->ifa_addr->sa_family != AF_LINK)) - ifa = ifa->ifa_next; - if((ifa != NULL) && (ifa->ifa_addr != NULL)) { - 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); - } - /* Print out some information for the user */ printf("el%d: 3c501 address %6D\n",idev->id_unit, sc->arpcom.ac_enaddr, ":"); @@ -278,7 +263,7 @@ el_init(int unit) base = sc->el_base; /* If address not known, do nothing. */ - if(ifp->if_addrlist == (struct ifaddr *)0) + if(TAILQ_EMPTY(&ifp->if_addrhead)) /* XXX unlikely */ return; s = splimp(); |