The algorithm we use to update checksums only works correctly if the
updated data is aligned on 16-bit boundaries (relative to the start of
the packet).
Import the OpenBSD fix for this issue.
PR: 240416
Obtained from: OpenBSD
Differential D27696
pf: Fix unaligned checksum updates kp on Dec 21 2020, 9:09 AM. Authored by Tags None Referenced Files
Details
The algorithm we use to update checksums only works correctly if the Import the OpenBSD fix for this issue. PR: 240416
Diff Detail
Event TimelineComment Actions I guess you need a similar dance (for 16-bit) in pf_normalize_tcpopt() when updating the MSS. Comment Actions Ensure we actually update the packet, even when checksum flags indicate the checksum doesn't need an update. |