Page MenuHomeFreeBSD

More IPv4 fragment checks
ClosedPublic

Authored by jtl on Nov 9 2018, 2:56 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mar 23 2024, 12:37 AM
Unknown Object (File)
Mar 23 2024, 12:37 AM
Unknown Object (File)
Mar 23 2024, 12:37 AM
Unknown Object (File)
Mar 23 2024, 12:24 AM
Unknown Object (File)
Dec 20 2023, 6:08 AM
Unknown Object (File)
Dec 5 2023, 4:57 PM
Unknown Object (File)
Nov 28 2023, 7:51 AM
Unknown Object (File)
Nov 25 2023, 4:04 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.