HomeFreeBSD

netinet: provide "at offset" variant of the in_delayed_cksum() API

Description

netinet: provide "at offset" variant of the in_delayed_cksum() API

The need for such a variant comes from the fact that we need to
re-calculate checksum aftet ng_nat(4) transformations while getting
mbufs from the layer 2 (ethernet) directly.

Reviewed by: markj, tuexen
Approved by: tuexen
Sponsored by: Sippy Software, Inc.
Differential Revision: https://reviews.freebsd.org/D49677

(cherry picked from commit 5feb38e37847c10af86f5c75dc768518973c6aaa)

Details

Provenance
sobomaxAuthored on Aug 25 2025, 10:12 PM
Reviewer
markj
Differential Revision
D49677: Fix potential crash calling TCP delayed checksum function when ng_nat is attached to the layer 2
Parents
rGdca645cd3112: nvme: Add handling for bar5
Branches
Unknown
Tags
Unknown