HomeFreeBSD

libpfctl: be more tolerant of kernel extensions

Description

libpfctl: be more tolerant of kernel extensions

Allow the kernel to supply more array elements than expected, but cut
off when we hit what we think the maximum is. This will improve forward
compatibility (i.e. old userspace with newer kernel).

Reviewed by: zlei
MFC after: 1 week
Sponsored by: Orange Business Services
Differential Revision: https://reviews.freebsd.org/D42392

(cherry picked from commit 2b1eb63fc9c6d6f64baaac59b7ea7c2a3228c03f)

Details

Provenance
kpAuthored on Oct 27 2023, 12:13 PM
Reviewer
zlei
Differential Revision
D42392: libpfctl: be more tolerant of kernel extensions
Parents
rGd322e5d76aa3: pf tests: ensure that we generate all permutations for SCTP multihome
Branches
Unknown
Tags
Unknown