HomeFreeBSD

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

Description

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

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
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D27688

(cherry picked from commit 2d3fda5fa1dc99aa8788e5f8d8bb71e682101063)

Details

Provenance
kpAuthored on Dec 19 2020, 3:06 PM
Differential Revision
D27688: pf tests: Verify (tcp) checksum modification on unaligned options
Parents
rG21745738a2b5: pf: Fix unaligned checksum updates
Branches
Unknown
Tags
Unknown