aboutsummaryrefslogtreecommitdiff
path: root/sys/netinet/if_ether.c
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2001-02-04 13:13:25 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2001-02-04 13:13:25 +0000
commitfc2ffbe6040d6630a06229c5c9be77601fb635eb (patch)
tree328f91e23b34b382d998fba4c7e55796b240b62b /sys/netinet/if_ether.c
parentef9e85abba5ce45c8b3fc840db320edb1abe0160 (diff)
Notes
Diffstat (limited to 'sys/netinet/if_ether.c')
-rw-r--r--sys/netinet/if_ether.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/netinet/if_ether.c b/sys/netinet/if_ether.c
index 94d0c116f553..7044845495ca 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