diff options
author | Hajimu UMEMOTO <ume@FreeBSD.org> | 2002-07-22 15:22:53 +0000 |
---|---|---|
committer | Hajimu UMEMOTO <ume@FreeBSD.org> | 2002-07-22 15:22:53 +0000 |
commit | fc99a00c7fd8b46108c1e1480d62fa026478328d (patch) | |
tree | cc39562b6ea40c9f3ec3aab6d5fe9295ff53b4b5 /usr.sbin/syslogd | |
parent | a5b71fafb7cc7a9bf324f3a9dca073b7eac66cdd (diff) | |
download | src-fc99a00c7fd8b46108c1e1480d62fa026478328d.tar.gz src-fc99a00c7fd8b46108c1e1480d62fa026478328d.zip |
use IPV6_V6ONLY instead of non standard IPV6_BINDV6ONLY.
MFC after: 1 week
Notes
Notes:
svn path=/head/; revision=100505
Diffstat (limited to 'usr.sbin/syslogd')
-rw-r--r-- | usr.sbin/syslogd/syslogd.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/usr.sbin/syslogd/syslogd.c b/usr.sbin/syslogd/syslogd.c index dc7e8b4fd5b5..7f988d532239 100644 --- a/usr.sbin/syslogd/syslogd.c +++ b/usr.sbin/syslogd/syslogd.c @@ -2370,17 +2370,15 @@ socksetup(int af, const char *bindhostname) logerror("socket"); continue; } -#ifdef IPV6_BINDV6ONLY if (r->ai_family == AF_INET6) { int on = 1; - if (setsockopt(*s, IPPROTO_IPV6, IPV6_BINDV6ONLY, + if (setsockopt(*s, IPPROTO_IPV6, IPV6_V6ONLY, (char *)&on, sizeof (on)) < 0) { logerror("setsockopt"); close(*s); continue; } } -#endif if (bind(*s, r->ai_addr, r->ai_addrlen) < 0) { close(*s); logerror("bind"); |