Use IFADDR_FOREACH().
This commit is contained in:
parent
2fae21685a
commit
5f717043e5
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: aarp.c,v 1.25 2007/08/26 22:59:09 dyoung Exp $ */
|
||||
/* $NetBSD: aarp.c,v 1.26 2007/12/04 10:22:34 dyoung Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1990,1991 Regents of The University of Michigan.
|
||||
|
@ -27,7 +27,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: aarp.c,v 1.25 2007/08/26 22:59:09 dyoung Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: aarp.c,v 1.26 2007/12/04 10:22:34 dyoung Exp $");
|
||||
|
||||
#include "opt_mbuftrace.h"
|
||||
|
||||
|
@ -134,7 +134,7 @@ at_ifawithnet(sat, ifp)
|
|||
struct sockaddr_at *sat2;
|
||||
struct netrange *nr;
|
||||
|
||||
TAILQ_FOREACH(ifa, &ifp->if_addrlist, ifa_list) {
|
||||
IFADDR_FOREACH(ifa, ifp) {
|
||||
if (ifa->ifa_addr->sa_family != AF_APPLETALK)
|
||||
continue;
|
||||
|
||||
|
@ -364,7 +364,7 @@ at_aarpinput(ifp, m)
|
|||
* Since we don't know the net, we just look for the first
|
||||
* phase 1 address on the interface.
|
||||
*/
|
||||
TAILQ_FOREACH(ia, &ifp->if_addrlist, ifa_list) {
|
||||
IFADDR_FOREACH(ia, ifp) {
|
||||
aa = (struct at_ifaddr *)ia;
|
||||
if (AA_SAT(aa)->sat_family == AF_APPLETALK &&
|
||||
(aa->aa_flags & AFA_PHASE2) == 0)
|
||||
|
@ -552,7 +552,7 @@ aarpprobe(arp)
|
|||
* interface with the same address as we're looking for. If the
|
||||
* net is phase 2, generate an 802.2 and SNAP header.
|
||||
*/
|
||||
TAILQ_FOREACH(ia, &ifp->if_addrlist, ifa_list) {
|
||||
IFADDR_FOREACH(ia, ifp) {
|
||||
aa = (struct at_ifaddr *)ia;
|
||||
if (AA_SAT(aa)->sat_family == AF_APPLETALK &&
|
||||
(aa->aa_flags & AFA_PROBING))
|
||||
|
|
Loading…
Reference in New Issue