diff options
Diffstat (limited to 'sys/netinet/if_ether.c')
-rw-r--r-- | sys/netinet/if_ether.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/netinet/if_ether.c b/sys/netinet/if_ether.c index 94d0c11..7044845 100644 --- a/sys/netinet/if_ether.c +++ b/sys/netinet/if_ether.c @@ -136,13 +136,13 @@ arptimer(ignored_arg) void *ignored_arg; { int s = splnet(); - register struct llinfo_arp *la = llinfo_arp.lh_first; + register struct llinfo_arp *la = LIST_FIRST(&llinfo_arp); struct llinfo_arp *ola; timeout(arptimer, (caddr_t)0, arpt_prune * hz); while ((ola = la) != 0) { register struct rtentry *rt = la->la_rt; - la = la->la_le.le_next; + la = LIST_NEXT(la, la_le); if (rt->rt_expire && rt->rt_expire <= time_second) arptfree(ola); /* timer has expired, clear */ } @@ -523,7 +523,7 @@ in_arpinput(m) op = ntohs(ea->arp_op); (void)memcpy(&isaddr, ea->arp_spa, sizeof (isaddr)); (void)memcpy(&itaddr, ea->arp_tpa, sizeof (itaddr)); - for (ia = in_ifaddrhead.tqh_first; ia; ia = ia->ia_link.tqe_next) + TAILQ_FOREACH(ia, &in_ifaddrhead, ia_link) #ifdef BRIDGE /* * For a bridge, we want to check the address irrespective |