Skip to content

fix(ip4defrag): allow final fragment to be less than 8 octets#1124

Open
niklaskb wants to merge 1 commit intogoogle:masterfrom
niklaskb:fix/allow-final-fragment-to-be-less-than-8-octets
Open

fix(ip4defrag): allow final fragment to be less than 8 octets#1124
niklaskb wants to merge 1 commit intogoogle:masterfrom
niklaskb:fix/allow-final-fragment-to-be-less-than-8-octets

Conversation

@niklaskb
Copy link
Copy Markdown

This PR will fix a bug where the defragmenter fails on pcap files that has a final fragment that is smaller than 8 octets.
The final fragment should be allowed to be less than 8 octets according to the standard.

For reference:
https://packetpushers.net/ip-fragmentation-in-detail/
https://stackoverflow.com/a/7846487/1642369

@niklaskb
Copy link
Copy Markdown
Author

See gopacket/gopacket#35 (comment) for test

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

Successfully merging this pull request may close these issues.

1 participant