Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Sep 2014 09:30:35 +0000 (UTC)
From:      "Andrey V. Elsukov" <ae@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r270927 - in head: sys/netinet6 usr.bin/netstat
Message-ID:  <201409010930.s819UZ9d017831@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ae
Date: Mon Sep  1 09:30:34 2014
New Revision: 270927
URL: http://svnweb.freebsd.org/changeset/base/270927

Log:
  Add the reverse part to rule #9. Also change its description in the
  netstat(8) output.
  
  MFC after:	1 week

Modified:
  head/sys/netinet6/in6_src.c
  head/usr.bin/netstat/inet6.c

Modified: head/sys/netinet6/in6_src.c
==============================================================================
--- head/sys/netinet6/in6_src.c	Mon Sep  1 09:00:00 2014	(r270926)
+++ head/sys/netinet6/in6_src.c	Mon Sep  1 09:30:34 2014	(r270927)
@@ -448,6 +448,8 @@ in6_selectsrc(struct sockaddr_in6 *dstso
 		 */
 		if (ifa_preferred(&ia_best->ia_ifa, &ia->ia_ifa))
 			REPLACE(9);
+		if (ifa_preferred(&ia->ia_ifa, &ia_best->ia_ifa))
+			NEXT(9);
 
 		/*
 		 * Rule 14: Use longest matching prefix.

Modified: head/usr.bin/netstat/inet6.c
==============================================================================
--- head/usr.bin/netstat/inet6.c	Mon Sep  1 09:00:00 2014	(r270926)
+++ head/usr.bin/netstat/inet6.c	Mon Sep  1 09:30:34 2014	(r270927)
@@ -345,7 +345,7 @@ static const char *srcrule_str[] = {
 	"matching label",
 	"public/temporary address",
 	"alive interface",
-	"preferred interface",
+	"better virtual status",
 	"rule #10",
 	"rule #11",
 	"rule #12",



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