diff options
author | roberto <roberto@FreeBSD.org> | 2008-08-22 15:58:00 +0000 |
---|---|---|
committer | roberto <roberto@FreeBSD.org> | 2008-08-22 15:58:00 +0000 |
commit | b85c7169a740b2edf0106ad59fdaa1b0160f823c (patch) | |
tree | 2b9fb7f64eacb322e95695e412c923e97ba33e88 /contrib/ntp/ntpd/refclock_local.c | |
parent | 1d197cfe9feac6bc29537d8e53c30b6435937b95 (diff) | |
parent | 7a6072eb585696f8856cd498c3fd194cf49f14c6 (diff) | |
download | FreeBSD-src-b85c7169a740b2edf0106ad59fdaa1b0160f823c.zip FreeBSD-src-b85c7169a740b2edf0106ad59fdaa1b0160f823c.tar.gz |
Merge ntpd & friends 4.2.4p5 from vendor/ntp/dist into head. Next commit
will update usr.sbin/ntp to match this.
MFC after: 2 weeks
Diffstat (limited to 'contrib/ntp/ntpd/refclock_local.c')
-rw-r--r-- | contrib/ntp/ntpd/refclock_local.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/contrib/ntp/ntpd/refclock_local.c b/contrib/ntp/ntpd/refclock_local.c index 3478f43..dc6f1ae 100644 --- a/contrib/ntp/ntpd/refclock_local.c +++ b/contrib/ntp/ntpd/refclock_local.c @@ -72,7 +72,7 @@ * * The stratum for this driver set at 5 by default, but it can be * changed by the fudge command and/or the ntpdc utility. The reference - * ID is "LCL" by default, but can be changed using the same mechanism. + * ID is 127.0.0.1 by default, but can be changed using the same mechanism. * *NEVER* configure this driver to operate at a stratum which might * possibly disrupt a client with access to a bona fide primary server, * unless the local clock oscillator is reliably disciplined by another @@ -93,13 +93,7 @@ * Local interface definitions */ #define PRECISION (-7) /* about 10 ms precision */ -#if defined(VMS) && defined(VMS_LOCALUNIT) -#define REFID "LCLv" /* reference ID */ -#else /* VMS VMS_LOCALUNIT */ -#define REFID "LCL\0" /* reference ID */ -#endif /* VMS VMS_LOCALUNIT */ #define DESCRIPTION "Undisciplined local clock" /* WRU */ - #define STRATUM 5 /* default stratum */ #define DISPERSION .01 /* default dispersion (10 ms) */ @@ -168,7 +162,7 @@ local_start( peer->stratum = STRATUM; pp->stratum = STRATUM; pp->clockdesc = DESCRIPTION; - memcpy(&pp->refid, "INIT", 4); + memcpy(&pp->refid, "LOCL", 4); poll_time = current_time; return (1); } |