Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Nov 2017 09:24:02 +0000 (UTC)
From:      Eugene Grosbein <eugen@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r326012 - stable/10/sys/net
Message-ID:  <201711200924.vAK9O2Gs070258@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: eugen
Date: Mon Nov 20 09:24:01 2017
New Revision: 326012
URL: https://svnweb.freebsd.org/changeset/base/326012

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/10/sys/net/if.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/net/if.c
==============================================================================
--- stable/10/sys/net/if.c	Mon Nov 20 09:23:08 2017	(r326011)
+++ stable/10/sys/net/if.c	Mon Nov 20 09:24:01 2017	(r326012)
@@ -1667,7 +1667,7 @@ ifa_add_loopback_route(struct ifaddr *ifa, struct sock
 
 	bzero(&info, sizeof(info));
 	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;
 	error = rtrequest1_fib(RTM_ADD, &info, &rt, ifa->ifa_ifp->if_fib);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201711200924.vAK9O2Gs070258>