You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
1009 B
35 lines
1009 B
Index: ntpd/ntp_io.c |
|
--- ntpd/ntp_io.c.orig 2003-10-07 23:10:39.000000000 +0200 |
|
+++ ntpd/ntp_io.c 2003-10-19 11:37:19.000000000 +0200 |
|
@@ -809,6 +809,7 @@ |
|
/* |
|
* enable reception of multicast packets |
|
*/ |
|
+#if defined(IPV6_JOIN_GROUP) |
|
mreq6.ipv6mr_multiaddr = iaddr6; |
|
mreq6.ipv6mr_interface = 0; |
|
if(setsockopt(inter_list[i].fd, IPPROTO_IPV6, IPV6_JOIN_GROUP, |
|
@@ -818,6 +819,7 @@ |
|
mreq6.ipv6mr_interface, stoa(&addr)); |
|
inter_list[i].flags |= INT_MULTICAST; |
|
inter_list[i].num_mcast++; |
|
+#endif |
|
if(i >= ninterfaces) |
|
ninterfaces = i+1; |
|
|
|
@@ -963,6 +965,7 @@ |
|
} |
|
else |
|
{ |
|
+#if defined(IPV6_LEAVE_GROUP) |
|
/* We are sharing "any address" port :-( Don't close it! */ |
|
if (setsockopt(inter_list[i].fd, IPPROTO_IPV6, IPV6_LEAVE_GROUP, |
|
(char *)&mreq6, sizeof(mreq6)) == -1) |
|
@@ -971,6 +974,7 @@ |
|
/* If there are none left negate the Multicast flag */ |
|
if(inter_list[i].num_mcast == 0) |
|
inter_list[i].flags &= ~INT_MULTICAST; |
|
+#endif |
|
} |
|
} |
|
break;
|
|
|