Fix FlagsField & dissection improvements#2035
Fix FlagsField & dissection improvements#2035guedou merged 2 commits intosecdev:masterfrom gpotter2:perffix2
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2035 +/- ##
==========================================
+ Coverage 86.31% 86.32% +0.01%
==========================================
Files 197 197
Lines 44468 44492 +24
==========================================
+ Hits 38383 38409 +26
+ Misses 6085 6083 -2
|
gpotter2
left a comment
There was a problem hiding this comment.
Some comments for the reviewers
test/regression.uts
Outdated
There was a problem hiding this comment.
This also made very little sense: it abuses the bugs in __iter__ to generate a list of packets, whereas it should only have been a flag field.
scapy/packet.py
Outdated
There was a problem hiding this comment.
For some reason I missed that: (0, 5) makes 6 values... -_-
scapy/packet.py
Outdated
There was a problem hiding this comment.
This is actually quite a big improvement: in fact hasattr calls __getattr__ under the hood, which calls getfieldval => we actually did getfieldval twice each time.
scapy/contrib/ibeacon.uts
Outdated
There was a problem hiding this comment.
This was triggered by the FlagsField bug
|
@p-l- can you review this PR? |
This is a part of #1999 that can be fast tracked.
This PR:
FlagsFieldvery weird behavior:before (?!?!)
after
hasattrclear_cache()work on subpackets