HomeFreeBSD

pfsync: Fix offset calculation

Description

pfsync: Fix offset calculation

Even though message version is automatically recognized and the top of
the struct is identical for different versions, when iterating over
multiple messages proper message length must be used. That's the length
of an union member for given version, not of the union itself.

Reviewed by: kp
Differential Revision: https://reviews.freebsd.org/D43862

Details

Provenance
vegeta_tuxpowered.netAuthored on Feb 13 2024, 7:41 PM
kpCommitted on Feb 15 2024, 11:54 AM
Reviewer
kp
Differential Revision
D43862: pfsync: Fix offset calculation
Parents
rGe2257b3168fc: zfs: merge openzfs/zfs@e0bd8118d
Branches
Unknown
Tags
Unknown