svn commit: r271288 - in stable/10: sys/netinet6 usr.bin/netstat

Andrey V. Elsukov ae at FreeBSD.org
Mon Sep 8 19:41:00 UTC 2014


Author: ae
Date: Mon Sep  8 19:40:59 2014
New Revision: 271288
URL: http://svnweb.freebsd.org/changeset/base/271288

Log:
  MFC r270927:
    Add the reverse part to rule #9. Also change its description in the
    netstat(8) output.
  
  Approved by:	re (gjb)

Modified:
  stable/10/sys/netinet6/in6_src.c
  stable/10/usr.bin/netstat/inet6.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/netinet6/in6_src.c
==============================================================================
--- stable/10/sys/netinet6/in6_src.c	Mon Sep  8 19:26:21 2014	(r271287)
+++ stable/10/sys/netinet6/in6_src.c	Mon Sep  8 19:40:59 2014	(r271288)
@@ -447,6 +447,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: stable/10/usr.bin/netstat/inet6.c
==============================================================================
--- stable/10/usr.bin/netstat/inet6.c	Mon Sep  8 19:26:21 2014	(r271287)
+++ stable/10/usr.bin/netstat/inet6.c	Mon Sep  8 19:40:59 2014	(r271288)
@@ -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",


More information about the svn-src-all mailing list