rpms/ntp/devel ntp-stable-4.2.0a-20050816-loconly.patch,NONE,1.1

fedora-cvs-commits at redhat.com fedora-cvs-commits at redhat.com
Wed Nov 9 12:16:33 UTC 2005


Author: praszyk

Update of /cvs/dist/rpms/ntp/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv5372

Added Files:
	ntp-stable-4.2.0a-20050816-loconly.patch 
Log Message:
ntpd does not submit his local clock (if there is no peer).


ntp-stable-4.2.0a-20050816-loconly.patch:
 ntp_proto.c |    6 ++++++
 1 files changed, 6 insertions(+)

--- NEW FILE ntp-stable-4.2.0a-20050816-loconly.patch ---
--- ntp-stable-4.2.0a-20050816/ntpd/ntp_proto.c.rasold1	2005-11-09 13:03:04.000000000 +0100
+++ ntp-stable-4.2.0a-20050816/ntpd/ntp_proto.c	2005-11-09 13:07:00.000000000 +0100
@@ -2807,6 +2807,12 @@
 		xpkt.li_vn_mode = PKT_LI_VN_MODE(sys_leap,
 		    PKT_VERSION(rpkt->li_vn_mode), xmode);
 		xpkt.stratum = STRATUM_TO_PKT(sys_stratum);
+		if (xpkt.stratum == 0 && sys_peer == NULL) {
+			sys_leap        = LEAP_NOWARNING;
+			xpkt.li_vn_mode = PKT_LI_VN_MODE (sys_leap, PKT_VERSION (rpkt ->li_vn_mode), xmode);
+			get_systime (&sys_reftime);
+			xpkt.stratum    = 1;
+		}
 		xpkt.refid = sys_refid;
 	}
 	xpkt.ppoll = rpkt->ppoll;




More information about the fedora-cvs-commits mailing list