Open student-limo opened 11 months ago
Is there a chance your input pcap file have truncated packets?
As @obormot pointed, frame 22 has zero length. You can check for pkt
length and abort if its zero. However, the next packet might potentially be erroneous.
How did this happen? Could be many reasons, but check your snaplen value and try with a larger value, or zero (65535). Your code looks alright, it should work with a healthy pcap.
Hope this helps.
It is my first time creating an issue on Github so if I've done anything incorrectly I apologize in advance.
Describe the bug I have encountered an issue with the dpkt package related to dividing flows into five-tuple. When I checked the newly generated pcap file, I found a malformed blank packet at the end of the file. I don't know how did this happen.
Code To Reproduce Here is the code I used to split the traffic into 5-tuple.
Screenshots Here is a screenshot of the output pcap file.
Details(please complete the following information):