summaryrefslogtreecommitdiffstats
path: root/usr.sbin/syslogd/syslogd.c
diff options
context:
space:
mode:
authorume <ume@FreeBSD.org>2002-07-22 15:22:53 +0000
committerume <ume@FreeBSD.org>2002-07-22 15:22:53 +0000
commit9c2c51a1e61030bfe633fa01ea19069f3fd0091b (patch)
treecc39562b6ea40c9f3ec3aab6d5fe9295ff53b4b5 /usr.sbin/syslogd/syslogd.c
parent881112a66cdce7db30df7845ba02b180e6725cd0 (diff)
downloadFreeBSD-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/syslogd/syslogd.c')
-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 dc7e8b4..7f988d5 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");
OpenPOWER on IntegriCloud