mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-05 09:14:03 +00:00
on in6_ifdetach(), do not remove default route mistakenly
Obtained from: KAME
This commit is contained in:
parent
9abfa9d14b
commit
e699b0ae53
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=71375
@ -1007,8 +1007,8 @@ in6_ifdetach(ifp)
|
||||
sin6.sin6_family = AF_INET6;
|
||||
sin6.sin6_addr = in6addr_linklocal_allnodes;
|
||||
sin6.sin6_addr.s6_addr16[1] = htons(ifp->if_index);
|
||||
if ((rt = rtalloc1((struct sockaddr *)&sin6, 0, 0UL)) != NULL)
|
||||
{
|
||||
rt = rtalloc1((struct sockaddr *)&sin6, 0, 0UL);
|
||||
if (rt && rt->rt_ifp == ifp) {
|
||||
rtrequest(RTM_DELETE, (struct sockaddr *)rt_key(rt),
|
||||
rt->rt_gateway, rt_mask(rt), rt->rt_flags, 0);
|
||||
rtfree(rt);
|
||||
|
Loading…
Reference in New Issue
Block a user