From: Danny Mayer Date: Tue, 27 Jul 2004 23:24:53 +0000 (-0400) Subject: Changes for conditional support of broadcast and multicast on some platforms X-Git-Tag: NTP_4_2_3~150 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6885b6292c798d445fa106d8832f69bbdf901c9e;p=thirdparty%2Fntp.git Changes for conditional support of broadcast and multicast on some platforms bk: 4106e4450jG7RCDctlGKRaLMKutJoA --- diff --git a/ntpd/ntp_io.c b/ntpd/ntp_io.c index 8fcf736272..34d404af2a 100644 --- a/ntpd/ntp_io.c +++ b/ntpd/ntp_io.c @@ -70,6 +70,7 @@ extern int listen_to_virtual_ips; #endif +#undef UDP_WILDCARD_DELIVERY /* #define ISC_PLATFORM_HAVEIPV6 struct ipv6_mreq { struct in6_addr ipv6mr_multiaddr; @@ -709,7 +710,7 @@ socket_multicast_enable(struct interface *iface, int ind, struct sockaddr_storag } break; case AF_INET6: -#ifdef ISC_PLATFORM_HAVEIPV6 +#if defined(ISC_PLATFORM_HAVEIPV6) && defined(IPV6_JOIN_GROUP) && defined(IPV6_LEAVE_GROUP) /* * Enable reception of multicast packets @@ -774,7 +775,7 @@ socket_multicast_disable(struct interface *iface, int ind, struct sockaddr_stora } break; case AF_INET6: -#ifdef ISC_PLATFORM_HAVEIPV6 +#if defined(ISC_PLATFORM_HAVEIPV6) && defined(IPV6_JOIN_GROUP) && defined(IPV6_LEAVE_GROUP) /* * Disable reception of multicast packets