svn commit: r255156 - head/usr.sbin/rtadvd

Hiroki Sato hrs at FreeBSD.org
Mon Sep 2 20:44:19 UTC 2013


Author: hrs
Date: Mon Sep  2 20:44:19 2013
New Revision: 255156
URL: http://svnweb.freebsd.org/changeset/base/255156

Log:
  Ignore if the interface is not IPv6-capable.
  
  Spotted by:	rpaulo

Modified:
  head/usr.sbin/rtadvd/if.c

Modified: head/usr.sbin/rtadvd/if.c
==============================================================================
--- head/usr.sbin/rtadvd/if.c	Mon Sep  2 20:35:39 2013	(r255155)
+++ head/usr.sbin/rtadvd/if.c	Mon Sep  2 20:44:19 2013	(r255156)
@@ -394,8 +394,8 @@ update_ifinfo_nd_flags(struct ifinfo *if
 	error = ioctl(s, SIOCGIFINFO_IN6, (caddr_t)&nd);
 	if (error) {
 		close(s);
-		syslog(LOG_ERR,
-		    "<%s> ioctl() failed.", __func__);
+		if (errno != EPFNOSUPPORT)
+			syslog(LOG_ERR, "<%s> ioctl() failed.", __func__);
 		return (1);
 	}
 	ifi->ifi_nd_flags = nd.ndi.flags;


More information about the svn-src-head mailing list