[pkg-ntp-maintainers] Bug#399905: ntp: workaround for dynamic IP doesn't work any longer

Joerg Sommrey jo at sommrey.de
Sat Dec 9 17:12:39 CET 2006


Digging in ntpd's sources shows that packages received on wildcard
interfaces are ignored intentionally.  Here is a patch that
reestablishes the old behaviour but might be harmful otherwise. 

-jo

--- ntpd/ntp_io.c	2006-12-09 12:44:53.000000000 +0100
+++ ntpd/ntp_io.c.orig	2006-12-09 11:32:25.000000000 +0100
@@ -514,7 +514,7 @@
 		inter_list[idx].sent = 0;
 		inter_list[idx].notsent = 0;
 		inter_list[idx].flags = INT_BROADCAST | INT_UP;
-		inter_list[idx].ignore_packets = ISC_FALSE;
+		inter_list[idx].ignore_packets = ISC_TRUE;
 #if defined(MCAST)
 	/*
 	 * enable possible multicast reception on the broadcast socket
@@ -549,7 +549,7 @@
 		inter_list[idx].sent = 0;
 		inter_list[idx].notsent = 0;
 		inter_list[idx].flags = INT_UP;
-		inter_list[idx].ignore_packets = ISC_FALSE;
+		inter_list[idx].ignore_packets = ISC_TRUE;
 		any6_interface = &inter_list[idx];
 		wildipv6 = idx;
 		idx++;




More information about the pkg-ntp-maintainers mailing list