refresh default router list on nd6_purge(), only if we are an
autoconfigured host. Obtained from: KAME
This commit is contained in:
parent
38363ccec2
commit
1026ccc41c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=78891
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user