HomeFreeBSD

Simplify dynamic ipfilter sysctls.

Description

Simplify dynamic ipfilter sysctls.

Pass the structure offset in arg2 instead of arg1. This avoids
having to undo the pointer arithmetic on arg1. Instead arg2 can
be used directly as an offset relative to the desired structure.

Reviewed by: cy
Obtained from: CheriBSD
Sponsored by: DARPA
Differential Revision: https://reviews.freebsd.org/D27961

(cherry picked from commit d86d3194955c3063baeed27de4bc84dfe7a7187d)

Details

Provenance
jhbAuthored on Jan 21 2021, 12:33 AM
cyCommitted on Jul 14 2022, 1:20 PM
Reviewer
cy
Differential Revision
D27961: Simplify dynamic ipfilter sysctls.
Parents
rG101639e97886: etcupdate: Preserve permissions when installing a resolved file.
Branches
Unknown
Tags
Unknown