[ntpsec commit] Don' t use obsolete FreeBSD socket option IPV6_BINDV6ONLY...

Eric S. Raymond esr at ntpsec.org
Wed Sep 30 01:14:07 UTC 2015


Module:    ntpsec
Branch:    master
Commit:    0e1e65f530949f3755db7c70692ba75d565d26ad
Changeset: http://git.ntpsec.org/ntpsec/commit/?id=0e1e65f530949f3755db7c70692ba75d565d26ad

Author:    Eric S. Raymond <esr at thyrsus.com>
Date:      Tue Sep 29 21:10:10 2015 -0400

Don't use obsolete FreeBSD socket option IPV6_BINDV6ONLY...

...the standard IPV6_V6ONLY should handle this case.

---

 ntpd/ntp_io.c | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/ntpd/ntp_io.c b/ntpd/ntp_io.c
index b8b20ca..d87f567 100644
--- a/ntpd/ntp_io.c
+++ b/ntpd/ntp_io.c
@@ -2973,13 +2973,6 @@ open_socket(
 				"setsockopt IPV6_V6ONLY on fails on address %s: %m",
 				stoa(addr));
 #endif
-#ifdef IPV6_BINDV6ONLY
-		if (setsockopt(fd, IPPROTO_IPV6, IPV6_BINDV6ONLY,
-		    (char*)&on, sizeof(on)))
-			msyslog(LOG_ERR,
-				"setsockopt IPV6_BINDV6ONLY on fails on address %s: %m",
-				stoa(addr));
-#endif
 	}
 
 #ifdef NEED_REUSEADDR_FOR_IFADDRBIND



More information about the vc mailing list