diff options
author | ume <ume@FreeBSD.org> | 2002-07-22 15:22:53 +0000 |
---|---|---|
committer | ume <ume@FreeBSD.org> | 2002-07-22 15:22:53 +0000 |
commit | 9c2c51a1e61030bfe633fa01ea19069f3fd0091b (patch) | |
tree | cc39562b6ea40c9f3ec3aab6d5fe9295ff53b4b5 /usr.sbin/inetd | |
parent | 881112a66cdce7db30df7845ba02b180e6725cd0 (diff) | |
download | FreeBSD-src-9c2c51a1e61030bfe633fa01ea19069f3fd0091b.zip FreeBSD-src-9c2c51a1e61030bfe633fa01ea19069f3fd0091b.tar.gz |
use IPV6_V6ONLY instead of non standard IPV6_BINDV6ONLY.
MFC after: 1 week
Diffstat (limited to 'usr.sbin/inetd')
-rw-r--r-- | usr.sbin/inetd/inetd.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/usr.sbin/inetd/inetd.c b/usr.sbin/inetd/inetd.c index 9bf9c79..163e0df 100644 --- a/usr.sbin/inetd/inetd.c +++ b/usr.sbin/inetd/inetd.c @@ -1209,14 +1209,12 @@ setsockopt(fd, SOL_SOCKET, opt, (char *)&on, sizeof (on)) (setsockopt(sep->se_fd, IPPROTO_IPV6, IPV6_PKTINFO, (char *)&on, sizeof (on)) < 0)) syslog(LOG_ERR, "setsockopt (IPV6_RECVPKTINFO): %m"); -#ifdef IPV6_BINDV6ONLY if (sep->se_family == AF_INET6) { int flag = sep->se_nomapped ? 1 : 0; - if (setsockopt(sep->se_fd, IPPROTO_IPV6, IPV6_BINDV6ONLY, + if (setsockopt(sep->se_fd, IPPROTO_IPV6, IPV6_V6ONLY, (char *)&flag, sizeof (flag)) < 0) - syslog(LOG_ERR, "setsockopt (IPV6_BINDV6ONLY): %m"); + syslog(LOG_ERR, "setsockopt (IPV6_V6ONLY): %m"); } -#endif /* IPV6_BINDV6ONLY */ #undef turnon if (sep->se_type == TTCP_TYPE) if (setsockopt(sep->se_fd, IPPROTO_TCP, TCP_NOPUSH, |