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

Align mock snaplen handling for pktHdr with reality #84

Closed
fako1024 opened this issue May 6, 2024 · 0 comments · Fixed by #85 or #86
Closed

Align mock snaplen handling for pktHdr with reality #84

fako1024 opened this issue May 6, 2024 · 0 comments · Fixed by #85 or #86
Assignees
Labels
bug Something isn't working

Comments

@fako1024
Copy link
Owner

fako1024 commented May 6, 2024

If actual packets are truncated / smaller than the defined capture snaplen, the snaplen value in the TPacket header is set to the length of the packet, not the snaplen (as it currently the case for the mock source). This usually isn't a problem (because it will just allocate more memory than actually required) but may miss issues that would occur on an "real" capture.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
1 participant