Page MenuHomeFreeBSD

pf tests: Verify (tcp) checksum modification on unaligned options
AbandonedPublic

Authored by kp on Dec 20 2020, 3:02 PM.
Tags
None
Referenced Files
F110990991: D27688.id81015.diff
Tue, Feb 25, 9:31 PM
Unknown Object (File)
Sun, Feb 16, 9:13 PM
Unknown Object (File)
Mon, Feb 10, 12:33 PM
Unknown Object (File)
Fri, Feb 7, 1:55 PM
Unknown Object (File)
Tue, Feb 4, 6:06 PM
Unknown Object (File)
Tue, Feb 4, 2:35 PM
Unknown Object (File)
Thu, Jan 30, 1:37 AM
Unknown Object (File)
Jan 12 2025, 4:54 AM

Details

Summary

It turns out pf incorrectly updates the TCP checksum if the TCP option
we're modifying is not 2-byte algined with respect to the start of the
packet.

Create a TCP packet with such an option and throw it through a scrub
rule, which will update timestamps and modify the packet.

PR: 240416

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Skipped
Unit
No Test Coverage
Build Status
Buildable 35554
Build 32454: arc lint + arc unit