diff options
Diffstat (limited to 'sys/pci/if_de.c')
-rw-r--r-- | sys/pci/if_de.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/pci/if_de.c b/sys/pci/if_de.c index 108518e..b756bae 100644 --- a/sys/pci/if_de.c +++ b/sys/pci/if_de.c @@ -3012,8 +3012,8 @@ tulip_addr_filter( #endif multicnt = 0; - for (ifma = sc->tulip_if.if_multiaddrs.lh_first; ifma != NULL; - ifma = ifma->ifma_link.le_next) { + for (ifma = LIST_FIRST(&sc->tulip_if.if_multiaddrs); ifma != NULL; + ifma = LIST_NEXT(ifma, ifma_link)) { if (ifma->ifma_addr->sa_family == AF_LINK) multicnt++; @@ -3041,8 +3041,8 @@ tulip_addr_filter( */ bzero(sc->tulip_setupdata, sizeof(sc->tulip_setupdata)); - for (ifma = sc->tulip_if.if_multiaddrs.lh_first; ifma != NULL; - ifma = ifma->ifma_link.le_next) { + for (ifma = LIST_FIRST(&sc->tulip_if.if_multiaddrs); ifma != NULL; + ifma = LIST_NEXT(ifma, ifma_link)) { if (ifma->ifma_addr->sa_family != AF_LINK) continue; @@ -3092,8 +3092,8 @@ tulip_addr_filter( /* * Else can get perfect filtering for 16 addresses. */ - for (ifma = sc->tulip_if.if_multiaddrs.lh_first; ifma != NULL; - ifma = ifma->ifma_link.le_next) { + for (ifma = LIST_FIRST(&sc->tulip_if.if_multiaddrs); ifma != NULL; + ifma = LIST_NEXT(ifma, ifma_link)) { if (ifma->ifma_addr->sa_family != AF_LINK) continue; addrp = LLADDR((struct sockaddr_dl *)ifma->ifma_addr); |