Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-2]: src/sys/netinet6 Pull up revision 1.92 (requested by tron in ...
details: https://anonhg.NetBSD.org/src/rev/13de64bc9329
branches: netbsd-2
changeset: 563347:13de64bc9329
user: he <he%NetBSD.org@localhost>
date: Thu Apr 07 15:25:59 2005 +0000
description:
Pull up revision 1.92 (requested by tron in ticket #1394):
Make sure that prefixes get purged. Fixes PR#21189,
PR#25968, and PR#37873.
diffstat:
sys/netinet6/nd6.c | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
diffs (32 lines):
diff -r 263e898a3a9d -r 13de64bc9329 sys/netinet6/nd6.c
--- a/sys/netinet6/nd6.c Thu Apr 07 09:20:43 2005 +0000
+++ b/sys/netinet6/nd6.c Thu Apr 07 15:25:59 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: nd6.c,v 1.89 2004/02/11 10:37:33 itojun Exp $ */
+/* $NetBSD: nd6.c,v 1.89.4.1 2005/04/07 15:25:59 he Exp $ */
/* $KAME: nd6.c,v 1.279 2002/06/08 11:16:51 itojun Exp $ */
/*
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nd6.c,v 1.89 2004/02/11 10:37:33 itojun Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nd6.c,v 1.89.4.1 2005/04/07 15:25:59 he Exp $");
#include "opt_ipsec.h"
@@ -640,6 +640,13 @@
npr = pr->ndpr_next;
if (pr->ndpr_ifp == ifp) {
/*
+ * Because if_detach() does *not* release prefixes
+ * while purging addresses the reference count will
+ * still be above zero. We therefore reset it to
+ * make sure that the prefix really gets purged.
+ */
+ pr->ndpr_refcnt = 0;
+ /*
* Previously, pr->ndpr_addr is removed as well,
* but I strongly believe we don't have to do it.
* nd6_purge() is only called from in6_ifdetach(),
Home |
Main Index |
Thread Index |
Old Index