We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The ref_id field of scapy.layers.ntp.NTPHeader utilizes a dict with str keys, leading to an enum mismatch
ref_id
scapy.layers.ntp.NTPHeader
dict
str
2.6.0
all
No response
from scapy.layers.ntp import NTPHeader NTPHeader( bytes.fromhex("1a010af0000000000000001547505300c50204e639372a38c50204eceed33c52c50204ebd63b7952c50204ebd63d1cc1") ).show2()
###[ NTPHeader ]### leap = no warning version = 3 mode = symmetric passive stratum = 1 poll = 10 precision = -16 delay = 0 dispersion= 0.0003204 ref_id = b'GPS' ref = Mon, 27 Sep 2004 03:17:58 +0000 orig = Mon, 27 Sep 2004 03:18:04 +0000 recv = Mon, 27 Sep 2004 03:18:03 +0000 sent = Mon, 27 Sep 2004 03:18:03 +0000
###[ NTPHeader ]### leap = no warning version = 3 mode = symmetric passive stratum = 1 poll = 10 precision = -16 delay = 0 dispersion= 0.0003204 ref_id = b'GPS' (Global Position System) ref = Mon, 27 Sep 2004 03:17:58 +0000 orig = Mon, 27 Sep 2004 03:18:04 +0000 recv = Mon, 27 Sep 2004 03:18:03 +0000 sent = Mon, 27 Sep 2004 03:18:03 +0000
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Brief description
The
ref_id
field ofscapy.layers.ntp.NTPHeader
utilizes adict
withstr
keys, leading to an enum mismatchScapy version
2.6.0
Python version
all
Operating system
all
Additional environment information
No response
How to reproduce
Actual result
Expected result
Related resources
No response
The text was updated successfully, but these errors were encountered: