]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
pf: match keyword support
authorKristof Provost <kp@FreeBSD.org>
Tue, 2 Mar 2021 15:01:04 +0000 (16:01 +0100)
committerKristof Provost <kp@FreeBSD.org>
Sat, 31 Jul 2021 09:14:27 +0000 (11:14 +0200)
commitc6fd64da525a31890e42cef5665daeba665570d0
treec4d149ecf4c7a1a83b54de42f12775d233d311c7
parente02597d7ce67b109a2e9aa4ee552cc7bc096131e
pf: match keyword support

Support the 'match' keyword.
Note that support is limited to adding queuing information, so without
ALTQ support in the kernel setting match rules is pointless.

For the avoidance of doubt: this is NOT full support for the match
keyword as found in OpenBSD's pf. That could potentially be built on top
of this, but this commit is NOT that.

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

(cherry picked from commit ef950daa35d43dd396958ca28ce9de0514daf873)
sbin/pfctl/parse.y
sbin/pfctl/pf_ruleset.c
sbin/pfctl/pfctl_parser.c
sys/net/pfvar.h
sys/netpfil/pf/pf.c
sys/netpfil/pf/pf.h
sys/netpfil/pf/pf_ruleset.c