Do not display a warning message in a jail without AF_INET6 support.

MFC after:	3 days
This commit is contained in:
Hiroki Sato 2013-06-30 07:37:31 +00:00
parent efb6af5c24
commit 33cfdcc3ba

View File

@ -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 != EAFNOSUPPORT)
if (errno != EAFNOSUPPORT && error != EPROTONOSUPPORT)
warn("socket(AF_INET6, SOCK_DGRAM)");
return;
}