View | Details | Raw Unified | Return to bug 218517 | Differences between
and this patch

Collapse All | Expand All

(-)sys/net/if.c (-1 / +1 lines)
Lines 1699-1705 ifa_del_loopback_route(struct ifaddr *if Link Here
1699
	null_sdl.sdl_type = ifa->ifa_ifp->if_type;
1699
	null_sdl.sdl_type = ifa->ifa_ifp->if_type;
1700
	null_sdl.sdl_index = ifa->ifa_ifp->if_index;
1700
	null_sdl.sdl_index = ifa->ifa_ifp->if_index;
1701
	bzero(&info, sizeof(info));
1701
	bzero(&info, sizeof(info));
1702
	info.rti_flags = ifa->ifa_flags | RTF_HOST | RTF_STATIC;
1702
	info.rti_flags = ifa->ifa_flags | RTF_HOST | RTF_STATIC | RTF_PINNED;
1703
	info.rti_info[RTAX_DST] = ia;
1703
	info.rti_info[RTAX_DST] = ia;
1704
	info.rti_info[RTAX_GATEWAY] = (struct sockaddr *)&null_sdl;
1704
	info.rti_info[RTAX_GATEWAY] = (struct sockaddr *)&null_sdl;
1705
	error = rtrequest1_fib(RTM_DELETE, &info, NULL, ifa->ifa_ifp->if_fib);
1705
	error = rtrequest1_fib(RTM_DELETE, &info, NULL, ifa->ifa_ifp->if_fib);

Return to bug 218517