Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4674

General • NTP beyond 2036

$
0
0
Does anyone know how to provoke an NTPv4 response from 'pool.ntp.org', one which copes with 'beyond 2036' ?

Despite asking for a Version 4 response, it claiming to be exactly that, it's exactly a 48 byte response same as for Version 3, 32-bit seconds since 1900-01-01. No 'era' or 64-bit seconds count -

Code:

NTP version 3 requested  pool.ntp.org:123Received version 3 reply - 48 bytes  00 : 1C 02 00 E8 <-- Leap=0, Ver=3, Mode=4, Stratum=2  04 : 00 00 00 1E  08 : 00 00 00 43  0C : C5 CD 34 07  10 : E9 B5 7D 55  14 : B0 92 4F EC  18 : 00 00 00 00  1C : 00 00 00 00  20 : E9 B5 80 B4  24 : F0 13 5C CF  28 : E9 B5 80 B4 <-- Returned time in seconds  2C : F0 19 F3 5AResult  Got E9 B5 80 B4 : 3920986292 - For 1900 epoch  Adjusted time   : 1711997492 - For 1970 epoch  Now 1711997492  : 2024-04-01 18:51:32 UTC

Code:

NTP version 4 requested  pool.ntp.org:123Received version 4 reply - 48 bytes  00 : 24 03 00 E7 <-- Leap=0, Ver=4, Mode=4, Stratum=3  04 : 00 00 03 B7  08 : 00 00 00 14  0C : 0A E0 08 3E  10 : E9 B5 80 44  14 : 06 C5 1C D5  18 : 00 00 00 00  1C : 00 00 00 00  20 : E9 B5 80 B4  24 : F7 DD DB 12  28 : E9 B5 80 B4 <-- Returned time in seconds  2C : F8 16 7C 66Result  Got E9 B5 80 B4 : 3920986292 - For 1900 epoch  Adjusted time   : 1711997492 - For 1970 epoch  Now 1711997492  : 2024-04-01 18:51:32 UTC

Statistics: Posted by hippy — Mon Apr 01, 2024 6:59 pm — Replies 0 — Views 33



Viewing all articles
Browse latest Browse all 4674

Trending Articles