diff options
Diffstat (limited to 'sys/dev/sn/if_sn.c')
-rw-r--r-- | sys/dev/sn/if_sn.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/sn/if_sn.c b/sys/dev/sn/if_sn.c index e9a856d..bd5e172 100644 --- a/sys/dev/sn/if_sn.c +++ b/sys/dev/sn/if_sn.c @@ -1461,8 +1461,7 @@ sn_getmcf(struct arpcom *ac, u_char *mcf) bzero(mcf, MCFSZ); - for (ifma = LIST_FIRST(&ac->ac_if.if_multiaddrs); ifma; - ifma = LIST_NEXT(ifma, ifma_link)) { + LIST_FOREACH(ifma, &ac->ac_if.if_multiaddrs, ifma_link) { if (ifma->ifma_addr->sa_family != AF_LINK) return 0; index = smc_crc(LLADDR((struct sockaddr_dl *)ifma->ifma_addr)) & 0x3f; |