[Git][NTPsec/ntpsec][master] Make "no NTS cookie count was shipped" distingyuishable from "0 cookies".

Eric S. Raymond gitlab at mg.gitlab.com
Sat Mar 2 00:06:34 UTC 2019


Eric S. Raymond pushed to branch master at NTPsec / ntpsec


Commits:
6393c718 by Eric S. Raymond at 2019-03-02T00:06:14Z
Make "no NTS cookie count was shipped" distingyuishable from "0 cookies".

- - - - -


1 changed file:

- pylib/util.py


Changes:

=====================================
pylib/util.py
=====================================
@@ -984,7 +984,7 @@ class PeerSummary:
         mode = 0
         unreach = 0
         xmt = 0
-        ntscookies = 0
+        ntscookies = -1
 
         now = time.time()
 
@@ -1109,7 +1109,7 @@ class PeerSummary:
                 ptype = 'p'     # pool
             elif srcadr.startswith("224."):
                 ptype = 'a'     # manycastclient (compatibility with Classic)
-            elif ntscookies > 0:
+            elif ntscookies > -1:
                 # FIXME: Will foo up if there are ever more than 9 cookies
                 ptype = chr(ntscookies + ord('0'))
             else:



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/6393c718df24f03f61ccf6b15b128e5467239480

-- 
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/6393c718df24f03f61ccf6b15b128e5467239480
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/20190302/86417554/attachment-0001.html>


More information about the vc mailing list