[Git][NTPsec/ntpsec][master] Reduce ntpdig to single MAC per packet sent

Hal Murray (@hal.murray) gitlab at mg.gitlab.com
Sat May 31 23:04:59 UTC 2025



Hal Murray pushed to branch master at NTPsec / ntpsec


Commits:
b8f66ec4 by James Browning at 2025-05-31T16:01:36-07:00
Reduce ntpdig to single MAC per packet sent

- - - - -


1 changed file:

- ntpclients/ntpdig.py


Changes:

=====================================
ntpclients/ntpdig.py
=====================================
@@ -102,10 +102,10 @@ def queryhost(server, concurrent, timeout=5, port=123, bindaddr=None):
     request = ntp.packet.SyncPacket()
     request.transmit_timestamp = ntp.packet.SyncPacket.posix_to_ntp(
         time.time())
-    packet = request.flatten()
     needgap = (len(iptuples) > 1) and (gap > 0)
     firstloop = True
     for (family, socktype, proto, canonname, sockaddr) in iptuples:
+        packet = request.flatten()
         if needgap and not firstloop:
             time.sleep(gap)
         if firstloop:



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/-/commit/b8f66ec4189188f63c00faf1fc625af541292c84

-- 
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/-/commit/b8f66ec4189188f63c00faf1fc625af541292c84
You're receiving this email because of your account on gitlab.com.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20250531/90650964/attachment.htm>


More information about the vc mailing list