]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
setsockopt() notes
authorHarlan Stenn <stenn@ntp.org>
Mon, 26 Jun 2006 05:10:19 +0000 (01:10 -0400)
committerHarlan Stenn <stenn@ntp.org>
Mon, 26 Jun 2006 05:10:19 +0000 (01:10 -0400)
bk: 449f6c3blbBWg-iJvGytDx-nCHd8Lg

ntpd/ntp_io.c

index b9a35805afdc38bfcda9dcca668dc4665ac88b8a..8e9d1f6ae08be42faaedd816552a4c2835cbe3bb 100644 (file)
@@ -1460,7 +1460,7 @@ static isc_boolean_t
 socket_broadcast_disable(struct interface *iface, struct sockaddr_storage *maddr)
 {
 #ifdef SO_BROADCAST
-       int off = 0;    /* XXX: Should this be a u_char (Bug 657)? */
+       int off = 0;    /* This seems to be OK as an int */
 
        if (maddr->ss_family == AF_INET)
        {
@@ -2119,7 +2119,8 @@ open_socket(
 {
        int errval;
        SOCKET fd;
-       int on = 1, off = 0;    /* XXX: Should these be u_char (bug 657)? */
+       int on = 1, off = 0;    /* int is OK for REUSEADR per */
+                               /* http://www.kohala.com/start/mcast.api.txt */
 #if defined(IPTOS_LOWDELAY) && defined(IPPROTO_IP) && defined(IP_TOS)
        int tos;
 #endif /* IPTOS_LOWDELAY && IPPROTO_IP && IP_TOS */