diff options
author | hrs <hrs@FreeBSD.org> | 2013-06-30 07:37:31 +0000 |
---|---|---|
committer | hrs <hrs@FreeBSD.org> | 2013-06-30 07:37:31 +0000 |
commit | 86e2a6aa52b322e694431e4ddc508c6317492044 (patch) | |
tree | 05099d5c67065769ced343093dc5c73e721ffb98 | |
parent | e44becabdb86aed9cb249f1dd95d659377774fa8 (diff) | |
download | FreeBSD-src-86e2a6aa52b322e694431e4ddc508c6317492044.zip FreeBSD-src-86e2a6aa52b322e694431e4ddc508c6317492044.tar.gz |
Do not display a warning message in a jail without AF_INET6 support.
MFC after: 3 days
-rw-r--r-- | sbin/ifconfig/af_nd6.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/ifconfig/af_nd6.c b/sbin/ifconfig/af_nd6.c index 5c46452..ace07ab 100644 --- a/sbin/ifconfig/af_nd6.c +++ b/sbin/ifconfig/af_nd6.c @@ -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; } |