]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
libpfctl: Switch to pfctl_rule
authorKristof Provost <kp@FreeBSD.org>
Thu, 8 Apr 2021 08:31:46 +0000 (10:31 +0200)
committerKristof Provost <kp@FreeBSD.org>
Fri, 7 May 2021 08:16:01 +0000 (10:16 +0200)
commite055cd8e7a2c6ba5a96ec095290ad4893bb38f88
treea5c47f6389c2d0fc58c0806c7cb905bf84b8a4fa
parent7d9af27cd6f5fd583636c8d3b9107021f0f16e1c
libpfctl: Switch to pfctl_rule

Stop using the kernel's struct pf_rule, switch to libpfctl's pfctl_rule.
Now that we use nvlists to communicate with the kernel these structures
can be fully decoupled.

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

(cherry picked from commit e9eb09414a8de8f3329f51b48c90a5e5ac8f09cf)
12 files changed:
contrib/pf/ftp-proxy/filter.c
contrib/pf/tftp-proxy/filter.c
lib/libpfctl/libpfctl.c
lib/libpfctl/libpfctl.h
sbin/pfctl/parse.y
sbin/pfctl/pf_ruleset.c
sbin/pfctl/pfctl.c
sbin/pfctl/pfctl.h
sbin/pfctl/pfctl_optimize.c
sbin/pfctl/pfctl_parser.c
sbin/pfctl/pfctl_parser.h
usr.sbin/bsnmpd/modules/snmp_pf/pf_snmp.c