-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Cleanup DNS decompression + fix warning messages being shown #1849
New issue
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1849 +/- ##
==========================================
- Coverage 85.88% 85.52% -0.36%
==========================================
Files 187 184 -3
Lines 42784 41853 -931
==========================================
- Hits 36744 35796 -948
- Misses 6040 6057 +17
|
This comment has been minimized.
This comment has been minimized.
scapy/layers/dns.py
Outdated
@@ -29,7 +29,7 @@ | |||
from scapy.pton_ntop import inet_ntop, inet_pton | |||
|
|||
|
|||
def dns_get_str(s, p, pkt=None, _internal=False): | |||
def dns_get_str(s, p, pkt=None, _fullpacket=False): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that it is a good opportunity to rename this one letter variables.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s
stands for string (pretty well used in Scapy)
p
stands for pointer
Should I keep s
and get p
-> pointer
(a bit long, it’s used a lot afterwards)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this change is not too much trouble, it will improve the readability of the algorithm,
flake8 is not happy. |
bb0aa48
to
9fc155f
Compare
Dont worry, make flake8 happy 😄 Should be mergeable |
The side effect of this PR is that it will now print out packets that make the dissector crash. Currently, some TLS packets make the tests crash from time to time, we’ll be able to debug that out. |
Uh oh!
There was an error while loading. Please reload this page.