From 7e9ade328f5ce484b1469b1fdc5f42ecc954ccc9 Mon Sep 17 00:00:00 2001 From: Paul Gear Date: Wed, 9 Aug 2023 21:35:07 +1000 Subject: [PATCH 1/2] Fix poll & precision data types Poll and precision are signed, not unsigned. https://datatracker.ietf.org/doc/html/rfc5905#page-21 --- dpkt/ntp.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dpkt/ntp.py b/dpkt/ntp.py index 548081b4..b82a4a26 100644 --- a/dpkt/ntp.py +++ b/dpkt/ntp.py @@ -39,8 +39,8 @@ class NTP(dpkt.Packet): __hdr__ = ( ('flags', 'B', 0), ('stratum', 'B', 0), - ('interval', 'B', 0), - ('precision', 'B', 0), + ('interval', 'b', 0), + ('precision', 'b', 0), ('delay', 'I', 0), ('dispersion', 'I', 0), ('id', '4s', 0), From 68d34af672d427875341fad4c93aed315bdc02c0 Mon Sep 17 00:00:00 2001 From: Paul Gear Date: Thu, 10 Aug 2023 07:58:21 +1000 Subject: [PATCH 2/2] Update python versions Everything before 3.8 really should be removed, but since they still work, leaving 3.5-3.7 in place. https://devguide.python.org/versions/ --- .github/workflows/python-package.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index d3f9b1a8..654c0657 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -14,7 +14,7 @@ jobs: runs-on: ubuntu-20.04 strategy: matrix: - python-version: ['2.7', '3.5', '3.6', '3.7', '3.8', '3.9', 'pypy3'] + python-version: ['3.5', '3.6', '3.7', '3.8', '3.9', '3.10', '3.11', 'pypy3'] steps: - uses: actions/checkout@v2