diff options
author | ume <ume@FreeBSD.org> | 2001-06-27 17:56:17 +0000 |
---|---|---|
committer | ume <ume@FreeBSD.org> | 2001-06-27 17:56:17 +0000 |
commit | 6c95672334daef1917a52fd88dc5afc0b4aba788 (patch) | |
tree | 1a7469364a559d129e2fe0698962742db1014ea1 /sys/netinet6 | |
parent | 456c12319078f9994ab8335f771b4293d62495d2 (diff) | |
download | FreeBSD-src-6c95672334daef1917a52fd88dc5afc0b4aba788.zip FreeBSD-src-6c95672334daef1917a52fd88dc5afc0b4aba788.tar.gz |
refresh default router list on nd6_purge(), only if we are an
autoconfigured host.
Obtained from: KAME
Diffstat (limited to 'sys/netinet6')
-rw-r--r-- | sys/netinet6/nd6.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/sys/netinet6/nd6.c b/sys/netinet6/nd6.c index 6c727cd..35f2ca3 100644 --- a/sys/netinet6/nd6.c +++ b/sys/netinet6/nd6.c @@ -762,10 +762,12 @@ nd6_purge(ifp) 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. |