Page MenuHomeFreeBSD

More IPv4 fragment checks
ClosedPublic

Authored by jtl on Nov 9 2018, 2:56 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Jan 25, 7:29 PM
Unknown Object (File)
Sat, Jan 18, 5:26 PM
Unknown Object (File)
Jan 3 2025, 4:49 AM
Unknown Object (File)
Jan 2 2025, 3:23 PM
Unknown Object (File)
Oct 25 2024, 11:54 PM
Unknown Object (File)
Oct 25 2024, 11:54 PM
Unknown Object (File)
Oct 23 2024, 2:23 AM
Unknown Object (File)
Oct 17 2024, 3:51 AM
Subscribers

Details

Summary

Block 0-length fragments. (Previously, they were allowed when the MF bit was clear.)

Ensure that every fragment with the MF bit clear ends at the same offset. (Previously, we allowed multiple fragments with the MF bit, even if they ended at different offsets.)

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Sorry, getting IPv4 fragments into my head is absolutely not a good idea.

This revision is now accepted and ready to land.Nov 9 2018, 9:55 PM
sys/netinet/ip_reass.c
221 ↗(On Diff #50210)

There are separate ips_tooshort and ips_toosmall counters, and ips_toosmall has the comment not enough data so I suspect we can drop the XXX comment, perhaps separately.

This revision was automatically updated to reflect the committed changes.