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

(cherry picked from commit 50edc630719827b6c58dd515328997fd196b1d78)

Details

Provenance
vegeta_tuxpowered.netAuthored on Feb 13 2024, 7:41 PM
kpCommitted on Feb 24 2024, 6:47 PM
Reviewer
kp
Differential Revision
D43862: pfsync: Fix offset calculation
Parents
rG181e9683778e: sdiff: Misc cleanup.
Branches
Unknown
Tags
Unknown