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
Unknown Object (File)
Sun, Dec 14, 10:01 AM
Unknown Object (File)
Sun, Dec 14, 6:26 AM
Unknown Object (File)
Fri, Dec 12, 1:49 PM
Unknown Object (File)
Nov 17 2025, 7:14 PM
Unknown Object (File)
Nov 7 2025, 8:32 PM
Unknown Object (File)
Nov 3 2025, 12:29 PM
Unknown Object (File)
Nov 3 2025, 12:28 PM
Unknown Object (File)
Nov 3 2025, 12:26 PM

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