svn commit: r326011 - stable/11/sys/net
Eugene Grosbein
eugen at FreeBSD.org
Mon Nov 20 09:23:10 UTC 2017
Author: eugen
Date: Mon Nov 20 09:23:08 2017
New Revision: 326011
URL: https://svnweb.freebsd.org/changeset/base/326011
Log:
MFC r325436: RTF_PINNED for an interface
Allow a process to assign an IP address to local ppp interface
even if kernel routing table already has a route to the address in question
installed by some routing daemon (PR 223129).
Also, allow loopback route deletion when stopping a VIMAGE jail (PR 222647).
PR: 222647, 223129
Reviewed by: gnn
Approved by: mav (mentor)
Differential Revision: https://reviews.freebsd.org/D12747
Modified:
stable/11/sys/net/if.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/sys/net/if.c
==============================================================================
--- stable/11/sys/net/if.c Mon Nov 20 08:52:33 2017 (r326010)
+++ stable/11/sys/net/if.c Mon Nov 20 09:23:08 2017 (r326011)
@@ -1708,7 +1708,7 @@ ifa_maintain_loopback_route(int cmd, const char *otype
bzero(&info, sizeof(info));
if (cmd != RTM_DELETE)
info.rti_ifp = V_loif;
- 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;
link_init_sdl(ifp, (struct sockaddr *)&null_sdl, ifp->if_type);
More information about the svn-src-all
mailing list