svn commit: r329913 - stable/10/sys/net
Eugene Grosbein
eugen at FreeBSD.org
Sat Feb 24 16:50:57 UTC 2018
Author: eugen
Date: Sat Feb 24 16:50:57 2018
New Revision: 329913
URL: https://svnweb.freebsd.org/changeset/base/329913
Log:
Fix after incomplete MFC r326012: correctly delete loopback route
while removing interface address.
Reported by: Andreas Longwitz <longwitz at incore.de>
Approved by: avg (mentor)
Modified:
stable/10/sys/net/if.c
Modified: stable/10/sys/net/if.c
==============================================================================
--- stable/10/sys/net/if.c Sat Feb 24 16:31:26 2018 (r329912)
+++ stable/10/sys/net/if.c Sat Feb 24 16:50:57 2018 (r329913)
@@ -1699,7 +1699,7 @@ ifa_del_loopback_route(struct ifaddr *ifa, struct sock
null_sdl.sdl_type = ifa->ifa_ifp->if_type;
null_sdl.sdl_index = ifa->ifa_ifp->if_index;
bzero(&info, sizeof(info));
- info.rti_flags = ifa->ifa_flags | RTF_HOST | RTF_STATIC;
+ info.rti_flags = ifa->ifa_flags | RTF_HOST | RTF_STATIC | RTF_PINNED;
info.rti_info[RTAX_DST] = ia;
info.rti_info[RTAX_GATEWAY] = (struct sockaddr *)&null_sdl;
error = rtrequest1_fib(RTM_DELETE, &info, NULL, ifa->ifa_ifp->if_fib);
More information about the svn-src-stable
mailing list