From 00d64de0f57ceb6e4e6f76eadbdcae78e7aae00a Mon Sep 17 00:00:00 2001 From: John Hay Date: Sat, 20 Oct 2001 12:55:32 +0200 Subject: [PATCH] Make IPv6 multicasting work. bk: 3bd158249X_ILj-kbI5k-tOxo_4_tQ --- ntpd/ntp_io.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ntpd/ntp_io.c b/ntpd/ntp_io.c index c407f74e8d..1132a5b736 100644 --- a/ntpd/ntp_io.c +++ b/ntpd/ntp_io.c @@ -917,9 +917,9 @@ io_multicast_add( iaddr6 = ((struct sockaddr_in6*)&addr)->sin6_addr; memcpy(&haddr6, &(((struct sockaddr_in6*)&addr)->sin6_addr.s6_addr), sizeof(struct in6_addr)); - if (IN6_IS_ADDR_MULTICAST(&iaddr6)) { + if (!IN6_IS_ADDR_MULTICAST(&iaddr6)) { msyslog(LOG_ERR, - "multicast address %s not class D", + "address %s not IPv6 multicast address", stoa(&addr)); return; } @@ -947,7 +947,7 @@ io_multicast_add( * Try opening a socket for the specified class D address. This * works under SunOS 4.x, but not OSF1 .. :-( */ - s = open_socket((struct sockaddr_storage*)&sin6p, 0, 1); + s = open_socket((struct sockaddr_storage*)sin6p, 0, 1); if (s < 0) { memset((char *)&inter_list[i], 0, sizeof inter_list[0]); i = 0; -- 2.47.3