diff options
author | ume <ume@FreeBSD.org> | 2002-07-22 18:16:05 +0000 |
---|---|---|
committer | ume <ume@FreeBSD.org> | 2002-07-22 18:16:05 +0000 |
commit | cc156f13085f189113d55aef690545f3d45ee5f3 (patch) | |
tree | 8fadfa7505b535b28a5f4188a9a329c41a95d921 /usr.sbin/lpr/lpd | |
parent | a3550f285812f652c7cd8ace74e72d09fa9a9393 (diff) | |
download | FreeBSD-src-cc156f13085f189113d55aef690545f3d45ee5f3.zip FreeBSD-src-cc156f13085f189113d55aef690545f3d45ee5f3.tar.gz |
use IPV6_V6ONLY instead of non standard IPV6_BINDV6ONLY.
Approved by: gad
Diffstat (limited to 'usr.sbin/lpr/lpd')
-rw-r--r-- | usr.sbin/lpr/lpd/lpd.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/usr.sbin/lpr/lpd/lpd.c b/usr.sbin/lpr/lpd/lpd.c index 3420b65..62042be 100644 --- a/usr.sbin/lpr/lpd/lpd.c +++ b/usr.sbin/lpr/lpd/lpd.c @@ -904,17 +904,15 @@ socksetup(int af, int debuglvl) close(*s); continue; } -#ifdef IPV6_BINDV6ONLY if (r->ai_family == AF_INET6) { - if (setsockopt(*s, IPPROTO_IPV6, IPV6_BINDV6ONLY, + if (setsockopt(*s, IPPROTO_IPV6, IPV6_V6ONLY, &on, sizeof(on)) < 0) { syslog(LOG_ERR, - "setsockopt (IPV6_BINDV6ONLY): %m"); + "setsockopt (IPV6_V6ONLY): %m"); close(*s); continue; } } -#endif if (bind(*s, r->ai_addr, r->ai_addrlen) < 0) { syslog(LOG_DEBUG, "bind(): %m"); close(*s); |