libpfctl: be more tolerant of kernel extensions
authorKristof Provost <kp@FreeBSD.org>
Fri, 27 Oct 2023 12:13:57 +0000 (14:13 +0200)
committerKristof Provost <kp@FreeBSD.org>
Tue, 31 Oct 2023 15:03:22 +0000 (16:03 +0100)
commit2b1eb63fc9c6d6f64baaac59b7ea7c2a3228c03f
tree0fab36c471c91c57e7ff01950e402c1e0cfd9650
parent483d5c4075e06e52d5daa23aef2b4f4a2eb64443
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
lib/libpfctl/libpfctl.c