Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 2 Sep 2013 20:44:19 +0000 (UTC)
From:      Hiroki Sato <hrs@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r255156 - head/usr.sbin/rtadvd
Message-ID:  <201309022044.r82KiJpi030020@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;



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