HomeFreeBSD

pf: Fix IP checksum on reassembly

Description

pf: Fix IP checksum on reassembly

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")
Differential Revision: https://reviews.freebsd.org/D30026

Details

Provenance
kpAuthored on Apr 28 2021, 10:56 AM
Differential Revision
D30026: pf: Fix IP checksum on reassembly
Parents
rGeecdf5220b1a: sctp: use RTO.Initial of 1 second as specified in RFC 4960bis
Branches
Unknown
Tags
Unknown