20248611 Update ntp to 4.2.8
15608765 SUNBT6908332 ntpd(v4) fails with link local IPv6 addresses.
15797761 SUNBT7176468 ntpd(1m) man page contains typos
17626608 There There is is a typo in SmfValueNTP.html
19365356 buffer overrun in tokenize()
20231654 ntp fails to build, bad arc4random
20244925 problem in SERVICE/NTP
The bug for this issue is NTP community bug 2707. This patch has been
submitted to the community. This patch may be removed when NTP is
upgraded to any version that has bug 2702 fixed in it.
--- ntpd/ntp_io.c
+++ ntpd/ntp_io.c
@@ -3450,19 +3450,18 @@ read_network_packet(
*/
// temporary hack...
-#ifndef HAVE_SOLARIS_PRIVS
if (AF_INET6 == itf->family) {
DPRINTF(1, ("Got an IPv6 packet, from <%s> (%d) to <%s> (%d)\n",
stoa(&rb->recv_srcadr),
- IN6_IS_ADDR_LOOPBACK(&rb->recv_srcadr),
+ IN6_IS_ADDR_LOOPBACK(&rb->recv_srcadr.sa6.sin6_addr),
stoa(&itf->sin),
- !IN6_IS_ADDR_LOOPBACK(&itf->sin)
+ !IN6_IS_ADDR_LOOPBACK(&itf->sin.sa6.sin6_addr)
));
}
if ( AF_INET6 == itf->family
- && IN6_IS_ADDR_LOOPBACK(&rb->recv_srcadr)
- && !IN6_IS_ADDR_LOOPBACK(&itf->sin)
+ && IN6_IS_ADDR_LOOPBACK(&rb->recv_srcadr.sa6.sin6_addr)
+ && !IN6_IS_ADDR_LOOPBACK(&itf->sin.sa6.sin6_addr)
) {
packets_dropped++;
DPRINTF(1, ("DROPPING that packet\n"));
@@ -3470,7 +3469,6 @@ read_network_packet(
return buflen;
}
DPRINTF(1, ("processing that packet\n"));
-#endif
/*
* Got one. Mark how and when it got here,