Ignore if the interface is not IPv6-capable.

Spotted by:	rpaulo
This commit is contained in:
Hiroki Sato 2013-09-02 20:44:19 +00:00
parent c33c993b7e
commit 42f725eefb
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=255156

View File

@ -394,8 +394,8 @@ update_ifinfo_nd_flags(struct ifinfo *ifi)
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;