aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/syslogd
diff options
context:
space:
mode:
authorHajimu UMEMOTO <ume@FreeBSD.org>2002-07-22 15:22:53 +0000
committerHajimu UMEMOTO <ume@FreeBSD.org>2002-07-22 15:22:53 +0000
commitfc99a00c7fd8b46108c1e1480d62fa026478328d (patch)
treecc39562b6ea40c9f3ec3aab6d5fe9295ff53b4b5 /usr.sbin/syslogd
parenta5b71fafb7cc7a9bf324f3a9dca073b7eac66cdd (diff)
downloadsrc-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.c4
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");