1
0
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:
Hajimu UMEMOTO 2001-01-22 13:02:10 +00:00
parent 9abfa9d14b
commit e699b0ae53
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=71375

View File

@ -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);