From Newsgroup: comp.protocols.time.ntp
--000000000000b8edcd06473a1e91
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
On Mon, Nov 3, 2025 at 22:36=E2=80=AFUTC rcheaito <
questions@lists.ntp.org>=
wrote:
When ntpd is running with the following simple config:
restrict 127.0.0.1
server 127.127.1.0
is it expected that ntpd keeps calling adjtime()?
My understanding is that in this config type, ntpd runs as server only, a=
nd
will sync itself to the local clock driver. So, if I am not missing something,
the daemon should not try to adjust the local clock that it is
synchronizing
to.
With apologies for taking so long to reply and the caveat that the local
clock driver has been deprecated since before I first ran ntpd, so I've
never used or tested it:
I believe it is expected behavior. I think you want "disable ntp" to your ntp.conf:
https://www.ntp.org/documentation/4.2.8-series/ntp.conf/#miscellaneous-opti= ons:~:text=3Dis%20enable.-,ntp,-Enables%20time%20and
Is this a specific behavior with VxWorks (where I am testing ntpd with), or
common to all systems?
All systems, I believe. I'm glad to hear the source code actually works on VxWorks. If someone at Wind River wants to hook me up with a
VxWorks/Workbench setup for the sole purpose of testing ntpd with the
VxSim, I could test my changes to ntpd against that platform occasionally.
I like the idea of ntpd continuing to support as many platforms as
reasonable, and I'd love to do a little work to reduce the #ifdef
SYS_VXWORKS forest in the code while doing so, but without the ability to
test, or someone willing to work with me to do such testing, I am hesitant
to do that cleanup.
Cheers,
Dave Hart
--000000000000b8edcd06473a1e91
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr"><div dir=3D"ltr"><div><div class=3D"gmail_default" style= =3D"font-family:"trebuchet ms",sans-serif"></div></div></div><div=
class=3D"gmail_quote gmail_quote_container"><div dir=3D"ltr" class=3D"gmai= l_attr">On Mon, Nov 3, 20<font face=3D"arial, sans-serif">25 at <span class= =3D"gmail_default" style=3D""></span>2<span class=3D"gmail_default" style= =3D"">2</span>:36=E2=80=AF<span class=3D"gmail_default" style=3D""></span>U= <span class=3D"gmail_default" style=3D"">TC</span></font> rcheaito <<a h= ref=3D"mailto:
questions@lists.ntp.org">
questions@lists.ntp.org</a>> wrot= e:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0= .8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">When ntpd is = running with the following simple config:<br>
restrict 127.0.0.1<br>
server 127.127.1.0<br>
is it expected that ntpd keeps calling adjtime()?<br>
My understanding is that in this config type, ntpd runs as server only, and=
will sync itself to the local clock driver. So, if I am not missing somethi= ng,<br>
the daemon should not try to adjust the local clock that it is synchronizin= g<br>
to.<br></blockquote><div><br></div><div><div class=3D"gmail_default" style= =3D"font-family:"trebuchet ms",sans-serif">With apologies for tak= ing so long to reply and the caveat that the local clock driver has been de= precated since before I first ran ntpd, so I've never used or tested it= :</div><div class=3D"gmail_default" style=3D"font-family:"trebuchet ms= ",sans-serif"><br></div><div class=3D"gmail_default" style=3D""><span = style=3D"font-family:"trebuchet ms",sans-serif">I believe it is e= xpected behavior.=C2=A0 I think you want "</span><font face=3D"monospa= ce">disable ntp</font><font face=3D"trebuchet ms, sans-serif">" to you=
r ntp.conf:</font></div><div class=3D"gmail_default" style=3D""><font face= =3D"trebuchet ms, sans-serif"><br></font></div><div class=3D"gmail_default"=
style=3D""><a href=3D"
https://www.ntp.org/documentation/4.2.8-series/ntp.c= onf/#miscellaneous-options:~:text=3Dis%20enable.-,ntp,-Enables%20time%20and= ">
https://www.ntp.org/documentation/4.2.8-series/ntp.conf/#miscellaneous-op= tions:~:text=3Dis%20enable.-,ntp,-Enables%20time%20and</a><font face=3D"tre= buchet ms, sans-serif"></font></div></div><div><br></div><blockquote class= =3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rg= b(204,204,204);padding-left:1ex">
Is this a specific behavior with VxWorks (where I am testing ntpd with), or=
common to all systems?<br></blockquote><div><br></div><div class=3D"gmail_d= efault" style=3D""><span style=3D"font-family:"trebuchet ms",sans= -serif">All systems, I believe.=C2=A0 I'm glad to hear the source code = actually works on VxWorks.=C2=A0 If someone at Wind River wants to hook me =
up with a VxWorks/Workbench setup for the sole purpose of testing ntpd with=
the VxSim, I could test my changes to ntpd against that platform occasiona= lly.=C2=A0 I like the idea of ntpd continuing to support as many platforms =
as reasonable, and I'd love to do a little work to reduce the </span><f= ont face=3D"monospace">#ifdef SYS_VXWORKS</font><font face=3D"trebuchet ms,=
sans-serif"> forest in the code while doing so, but without the ability to=
test, or someone willing to work with me to do such testing, I am hesitant=
to do that cleanup.</font></div><div><br></div></div><div><div dir=3D"ltr"=
class=3D"gmail_signature" data-smartmail=3D"gmail_signature"><div dir=3D"l= tr"><font face=3D"tahoma, sans-serif" color=3D"#666666">Cheers,<br>Dave Har= t</font></div></div></div></div>
--000000000000b8edcd06473a1e91--
--- Synchronet 3.21a-Linux NewsLink 1.2