-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Update gtp.py to exclude length field size from GTP payload length #3822
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
Additional details and impacted files@@ Coverage Diff @@
## master #3822 +/- ##
===========================================
+ Coverage 49.60% 81.93% +32.32%
===========================================
Files 341 349 +8
Lines 76081 81786 +5705
===========================================
+ Hits 37742 67009 +29267
+ Misses 38339 14777 -23562
|
|
Thanks for your interest in Scapy. Can you provide a packet example that exhibits the issue that your are fixing? It will help us implement a unit test. |
|
Hi, not my PR, but I came upon the same issue and can confirm that this change fixes the issue. Without this change: Notice that the APN IE is not parsed properly. Also wireshark is not able to dissect the resulting package. With this change: |
|
Sorry for the delay, but it would be nice to have a test in https://github.com/secdev/scapy/blob/master/test/contrib/gtp.uts to check this |
|
added a test |
Reducing length of 'length' field along with 'ietype' and 'CR_flag+instance'
gpotter2
left a comment
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.
Very sorry for the delay.
Reducing length of 'length' field along with 'ietype' and 'CR_flag+instance'
Checklist:
cd test && ./run_testsortox)fixes #xxx