Skip to content
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

IPv4 Length exceeds Packet Length during live device capture #449

Closed
exp111 opened this issue Mar 14, 2023 · 2 comments
Closed

IPv4 Length exceeds Packet Length during live device capture #449

exp111 opened this issue Mar 14, 2023 · 2 comments

Comments

@exp111
Copy link

exp111 commented Mar 14, 2023

I've encountered this issue where I can't access the tcp payload data during a live recording with SharpPcap and PacketDotNet.
Looked into it a bit deeper and found out that during live recording the fragmented packets have the wrong length.
Attached is a pcap that I created using the CaptureFileWriterDevice as wireshark didn't produce faulty packets.

pcap.zip
The packet in question:
grafik
Image of the packet recorded using wireshark (not the same recording):
grafik

Maybe it's because I'm capturing the loopback device? Is this a bug in sharpcap or is it the driver?

Using Windows 10, SharpPcap 6.2.5, Npcap 1.72
Also tried using the CreatingCaptureFile example with the same result.

@kayoub5
Copy link
Collaborator

kayoub5 commented Mar 14, 2023

increase DeviceConfiguration.Snaplen

@exp111
Copy link
Author

exp111 commented Mar 15, 2023

That fixed it, thanks

@exp111 exp111 closed this as completed Mar 15, 2023
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants