summaryrefslogtreecommitdiffstats
path: root/zebra/if_ioctl_solaris.c
diff options
context:
space:
mode:
authorpaul <paul>2004-09-24 08:24:42 +0000
committerpaul <paul>2004-09-24 08:24:42 +0000
commit0c0f9112e1530e8e7497cbb75853b9e4da93ea95 (patch)
tree3cbc10ed3495b7813a6921fa417f4987514d3d90 /zebra/if_ioctl_solaris.c
parent1603c06ba3ad07b8f9380209a137569abe3700e1 (diff)
downloadquagga-0c0f9112e1530e8e7497cbb75853b9e4da93ea95.tar.bz2
quagga-0c0f9112e1530e8e7497cbb75853b9e4da93ea95.tar.xz
2004-09-24 Paul Jakma <paul@dishone.st>
* irdp_{interface,main}.c: lists typedef removal cleanup. update some list loops to LIST_LOOP. some miscellaneous style and indent fixups. (no_ip_irdp_address_preference_cmd) Fix delete of referenced node in loop. * irdp_packet.c: (irdp_recvmsg) Fix buggy assignment of integer to pointer. * if_ioctl{,_solaris}.c: lists typedef removal cleanup. update some list loops to LIST_LOOP.
Diffstat (limited to 'zebra/if_ioctl_solaris.c')
-rw-r--r--zebra/if_ioctl_solaris.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/zebra/if_ioctl_solaris.c b/zebra/if_ioctl_solaris.c
index c05883c6..4f8284a3 100644
--- a/zebra/if_ioctl_solaris.c
+++ b/zebra/if_ioctl_solaris.c
@@ -334,16 +334,14 @@ struct connected *
if_lookup_linklocal (struct interface *ifp)
{
#ifdef HAVE_IPV6
- listnode node;
+ struct listnode *node;
struct connected *ifc;
if (ifp == NULL)
return NULL;
- for (node = listhead (ifp->connected); node; node = nextnode (node))
+ LIST_LOOP (ifp->connected, ifc, node)
{
- ifc = getdata (node);
-
if ((ifc->address->family == AF_INET6) &&
(IN6_IS_ADDR_LINKLOCAL (&ifc->address->u.prefix6)))
return ifc;