Ignore if the interface is not IPv6-capable.
Spotted by: rpaulo
This commit is contained in:
parent
c33c993b7e
commit
42f725eefb
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user