-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Provide a diff feature that refine packet comparison #4779
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
base: master
Are you sure you want to change the base?
Conversation
- `ApproximateField` class added in 'fields.py'. - `PacketCmp` class added in a new 'diff.py' module, exported in 'all.py'. - 'test/diff.uts' unit test added.
Could you show a demo of what it does in action? Thanks. |
@@ -3,6 +3,7 @@ | |||
# See https://scapy.net/ for more information | |||
# Copyright (C) Philippe Biondi <[email protected]> | |||
# Copyright (C) Michael Farrell <[email protected]> | |||
# Copyright (C) 2025 Thales |
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.
My personal opinion : this one is unecessary considering the changes in the file.
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've set this line following our legal department recommendations.
Let me check with them.
Sure. It would be worth adding faithful documentation in the end if you validate this proposal. To reply quickly, here are extracts of outputs from the 'diff.uts' unit test I've proposed. Comparison of packet with exact match
Memo: The The lines after the The
Successful comparison with approximation
Comparison failure with aproximate field out of tolerance
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #4779 +/- ##
==========================================
- Coverage 81.62% 81.21% -0.42%
==========================================
Files 358 364 +6
Lines 85652 88652 +3000
==========================================
+ Hits 69915 72000 +2085
- Misses 15737 16652 +915
🚀 New features to boost your workflow:
|
Draft PR for #4739.
Initiated as a draft PR for preliminary discussions before an official delivery (not squashed yet).
To be discussed:
Checklist:
cd test && ./run_tests
ortox
)