svn commit: r253062 - stable/9/sbin/ifconfig

Hiroki Sato hrs at FreeBSD.org
Tue Jul 9 07:59:48 UTC 2013


Author: hrs
Date: Tue Jul  9 07:59:47 2013
New Revision: 253062
URL: http://svnweb.freebsd.org/changeset/base/253062

Log:
  MFC 252408, 252557:
  
  Do not display a warning message in a jail without AF_INET6 support.

Modified:
  stable/9/sbin/ifconfig/af_nd6.c
Directory Properties:
  stable/9/sbin/ifconfig/   (props changed)

Modified: stable/9/sbin/ifconfig/af_nd6.c
==============================================================================
--- stable/9/sbin/ifconfig/af_nd6.c	Tue Jul  9 07:57:10 2013	(r253061)
+++ stable/9/sbin/ifconfig/af_nd6.c	Tue Jul  9 07:59:47 2013	(r253062)
@@ -148,7 +148,7 @@ nd6_status(int s)
 	memset(&nd, 0, sizeof(nd));
 	strncpy(nd.ifname, ifr.ifr_name, sizeof(nd.ifname));
 	if ((s6 = socket(AF_INET6, SOCK_DGRAM, 0)) < 0) {
-		if (errno != EPROTONOSUPPORT)
+		if (errno != EAFNOSUPPORT && errno != EPROTONOSUPPORT)
 			warn("socket(AF_INET6, SOCK_DGRAM)");
 		return;
 	}


More information about the svn-src-stable-9 mailing list