Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netinet6 Use macro to iterate on the nd_prefix list
details: https://anonhg.NetBSD.org/src/rev/c48d719c112c
branches: trunk
changeset: 349545:c48d719c112c
user: ozaki-r <ozaki-r%NetBSD.org@localhost>
date: Wed Dec 14 04:13:50 2016 +0000
description:
Use macro to iterate on the nd_prefix list
diffstat:
sys/netinet6/nd6_rtr.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diffs (29 lines):
diff -r a87c8932d592 -r c48d719c112c sys/netinet6/nd6_rtr.c
--- a/sys/netinet6/nd6_rtr.c Wed Dec 14 04:05:11 2016 +0000
+++ b/sys/netinet6/nd6_rtr.c Wed Dec 14 04:13:50 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: nd6_rtr.c,v 1.125 2016/12/12 03:14:01 ozaki-r Exp $ */
+/* $NetBSD: nd6_rtr.c,v 1.126 2016/12/14 04:13:50 ozaki-r Exp $ */
/* $KAME: nd6_rtr.c,v 1.95 2001/02/07 08:09:47 itojun Exp $ */
/*
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nd6_rtr.c,v 1.125 2016/12/12 03:14:01 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nd6_rtr.c,v 1.126 2016/12/14 04:13:50 ozaki-r Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -900,9 +900,8 @@
struct in6_ifaddr *ia;
struct ifaddr *ifa, *ifa_next;
- for (pr = nd_prefix.lh_first; pr; pr = pr_next) {
+ ND_PREFIX_LIST_FOREACH_SAFE(pr, pr_next) {
int s;
- pr_next = pr->ndpr_next;
/*
* This function is called when we need to make more room for
Home |
Main Index |
Thread Index |
Old Index