Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netinet6 Fix nd6_numroutes counting
details: https://anonhg.NetBSD.org/src/rev/41043eccfcc2
branches: trunk
changeset: 339157:41043eccfcc2
user: ozaki-r <ozaki-r%NetBSD.org@localhost>
date: Tue Jun 30 06:42:06 2015 +0000
description:
Fix nd6_numroutes counting
nd6_numroutes is intended to be incremented when a route is added via RA
and decremented when a RA route is deleted. However, a decrement of a RA
route was skipped when there remained references to the RA route.
diffstat:
sys/netinet6/nd6_rtr.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r 9957a3feecfb -r 41043eccfcc2 sys/netinet6/nd6_rtr.c
--- a/sys/netinet6/nd6_rtr.c Tue Jun 30 06:19:21 2015 +0000
+++ b/sys/netinet6/nd6_rtr.c Tue Jun 30 06:42:06 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: nd6_rtr.c,v 1.99 2015/05/02 14:28:30 roy Exp $ */
+/* $NetBSD: nd6_rtr.c,v 1.100 2015/06/30 06:42:06 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.99 2015/05/02 14:28:30 roy Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nd6_rtr.c,v 1.100 2015/06/30 06:42:06 ozaki-r Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -568,8 +568,8 @@
*/
oldrt->rt_refcnt++;
rtfree(oldrt);
- nd6_numroutes--;
}
+ nd6_numroutes--;
}
dr->installed = 0;
Home |
Main Index |
Thread Index |
Old Index