]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
pfctl: Use the new DIOCGETRULENV ioctl
authorKristof Provost <kp@FreeBSD.org>
Fri, 26 Mar 2021 10:22:15 +0000 (11:22 +0100)
committerKristof Provost <kp@FreeBSD.org>
Fri, 7 May 2021 08:16:00 +0000 (10:16 +0200)
commitd14cf045873bee3bd15e246274591da24cf5daed
tree3e814c97d3a714ada908dd9b0b99b3324d9c39f3
parent5b16c4b6e824ab3a708c75a51c73898cbf98599e
pfctl: Use the new DIOCGETRULENV ioctl

Create wrapper functions to handle the parsing of the nvlist and move
that code into pfctl_ioctl.c.
At some point this should be moved into a libpfctl.

MFC after: 4 weeks
Sponsored by: Rubicon Communications, LLC ("Netgate")
Differential Revision: https://reviews.freebsd.org/D29560

(cherry picked from commit 0d6c8174ef2f3d8d6fb02ec97753a0937796a5c6)
sbin/pfctl/Makefile
sbin/pfctl/pfctl.c
sbin/pfctl/pfctl_ioctl.c [new file with mode: 0644]
sbin/pfctl/pfctl_ioctl.h [new file with mode: 0644]
sbin/pfctl/pfctl_optimize.c