]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
Log manual entries with MANU refid in tracking log
authorMiroslav Lichvar <mlichvar@redhat.com>
Fri, 14 Jun 2013 17:42:13 +0000 (19:42 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Mon, 17 Jun 2013 16:26:48 +0000 (18:26 +0200)
reference.c

index 77112e93f0c57fa4ffb6500f444972e516526507..7d6d2400652fc248bcb601c187ba8f836a689437 100644 (file)
@@ -857,14 +857,12 @@ REF_SetManualReference
  double skew
 )
 {
-  IPAddr local_ip;
-  
-  UTI_StringToIP("127.127.1.1", &local_ip);
+  uint32_t manual_refid = 0x4D414E55; /* MANU */
 
   /* We are not synchronised to an external source, as such.  This is
    only supposed to be used with the local source option, really
    ... */
-  REF_SetReference(0, LEAP_Unsynchronised, LOCAL_REFERENCE_ID, &local_ip,
+  REF_SetReference(0, LEAP_Unsynchronised, manual_refid, NULL,
                    ref_time, offset, 0.0, frequency, skew, 0.0, 0.0);
 }