Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netinet6 refresh default router list on nd6_detach(), on...
details: https://anonhg.NetBSD.org/src/rev/fab7436d0c71
branches: trunk
changeset: 511818:fab7436d0c71
user: itojun <itojun%NetBSD.org@localhost>
date: Wed Jun 27 17:36:14 2001 +0000
description:
refresh default router list on nd6_detach(), only if we are an
autoconfigured host. bug was that, we will lose default route on
"ifconfig gif0 destroy" even if default is not pointing to gif0.
reported by ume%mahoroba.org@localhost. sync with kame
diffstat:
sys/netinet6/nd6.c | 12 +++++++-----
1 files changed, 7 insertions(+), 5 deletions(-)
diffs (26 lines):
diff -r 6333dc6d5856 -r fab7436d0c71 sys/netinet6/nd6.c
--- a/sys/netinet6/nd6.c Wed Jun 27 17:33:43 2001 +0000
+++ b/sys/netinet6/nd6.c Wed Jun 27 17:36:14 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: nd6.c,v 1.47 2001/06/22 13:36:12 itojun Exp $ */
+/* $NetBSD: nd6.c,v 1.48 2001/06/27 17:36:14 itojun Exp $ */
/* $KAME: nd6.c,v 1.151 2001/06/19 14:24:41 sumikawa Exp $ */
/*
@@ -625,10 +625,12 @@
if (nd6_defifindex == ifp->if_index)
nd6_setdefaultiface(0);
- /* refresh default router list */
- bzero(&drany, sizeof(drany));
- defrouter_delreq(&drany, 0);
- defrouter_select();
+ if (!ip6_forwarding && ip6_accept_rtadv) { /* XXX: too restrictive? */
+ /* refresh default router list */
+ bzero(&drany, sizeof(drany));
+ defrouter_delreq(&drany, 0);
+ defrouter_select();
+ }
/*
* Nuke neighbor cache entries for the ifp.
Home |
Main Index |
Thread Index |
Old Index