Page MenuHomeFreeBSD

pf: Fix IP checksum on reassembly
ClosedPublic

Authored by kp on Apr 28 2021, 12:58 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mar 3 2025, 5:05 AM
Unknown Object (File)
Feb 23 2025, 9:31 PM
Unknown Object (File)
Feb 17 2025, 1:19 AM
Unknown Object (File)
Feb 8 2025, 12:30 AM
Unknown Object (File)
Feb 7 2025, 8:52 AM
Unknown Object (File)
Feb 7 2025, 8:38 AM
Unknown Object (File)
Jan 25 2025, 7:45 PM
Unknown Object (File)
Jan 22 2025, 11:15 AM

Details

Summary

If we reassemble a packet we modify the IP header (to set the length and
remove the fragment offset information), but we failed to update the
checksum. On certain setups (mostly where we did not re-fragment again
afterwards) this could lead to us sending out packets with incorrect
checksums.

PR: 255432
MFC after: 1 week
Sponsored by: Rubicon Communications, LLC ("Netgate")

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 38906
Build 35795: arc lint + arc unit