[PATCH 5/9] ntp: Support NTPv3 protocol version

Peter Meerwald pmeerw at pmeerw.net
Mon Sep 16 07:17:24 PDT 2013


> > NTPv3 is advertised by Windows 7, but only v4 is accepted
 
> I am failing to understand this comment. What does this actually mean. Windows 7 is still using NTP version 3 from 1992. Instead of NTP version 4 from 2010.

Windows says is it doing NTP v3
connman only accepts NTP v4 (and nothing else)

ntpdate for comparision accepts v1, v2, v3, v4

there isn't much version specific code in ntpdate -- so I guess v3 would 
work also with connman, and indeed it does (for me at least)

I haven't checked any corner cases though

> > rc/ntp.c:send_timeout() send timeout (retries 1)
> > src/ntp.c:decode_msg() flags : 0x1c
> > src/ntp.c:decode_msg() stratum : 1
> > src/ntp.c:decode_msg() poll : 1024.000000 seconds (10)
> > src/ntp.c:decode_msg() precision : 0.015625 seconds (-6)
> > src/ntp.c:decode_msg() root delay : 0 seconds (fraction 0)
> > src/ntp.c:decode_msg() root disp. : 2560 seconds (fraction 19716)
> > src/ntp.c:decode_msg() reference : 0x4c434f4c
> > src/ntp.c:decode_msg() unsupported version 3
> > connmand[21770]: src/ntp.c:decode_msg() flags : 0x1c
> > connmand[21770]: src/ntp.c:decode_msg() stratum : 1
> > connmand[21770]: src/ntp.c:decode_msg() poll : 1024.000000 seconds (10)
> > connmand[21770]: src/ntp.c:decode_msg() precision : 0.015625 seconds (-6)
> > connmand[21770]: src/ntp.c:decode_msg() root delay : 0 seconds (fraction 0)
> > connmand[21770]: src/ntp.c:decode_msg() root disp. : 2560 seconds (fraction 19716)
> > connmand[21770]: src/ntp.c:decode_msg() reference : 0x4c434f4c
> > connmand[21770]: src/ntp.c:decode_msg() unsupported version 3

p.

-- 

Peter Meerwald
+43-664-2444418 (mobile)



More information about the connman mailing list