]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add common firewall test suite
authorTom Jones <thj@FreeBSD.org>
Mon, 5 Aug 2019 11:47:34 +0000 (11:47 +0000)
committerKristof Provost <kp@FreeBSD.org>
Tue, 14 Sep 2021 08:26:33 +0000 (10:26 +0200)
commit086f8d605606aa0f3d8092f5757558cadd5e4233
tree9f257b289e41a3d3ca7a8d361c219af921d2b762
parent99721d9dbbc0a086b7f5376059286a46e6e698b1
Add common firewall test suite

Add a common test suite for the firewalls included in the base system. The test
suite allows common test infrastructure to test pf, ipfw and ipf firewalls from
test files containing the setup for all three firewalls.

Add the pass block test for pf, ipfw and ipf. The pass block test checks the
allow/deny functionality of the firewalls tested.

Submitted by:   Ahsan Barkati
Sponsored by:   Google, Inc. (GSoC 2019)
Reviewed by:    kp
Approved by:    bz (co-mentor)
MFC after:      2 weeks
Differential Revision: https://reviews.freebsd.org/D21065

(cherry picked from commit f97a8a36153a9773d9f93018d66a7de2d050a59a)
etc/mtree/BSD.tests.dist
tests/sys/netpfil/Makefile
tests/sys/netpfil/common/Makefile
tests/sys/netpfil/common/pass_block.sh [new file with mode: 0644]
tests/sys/netpfil/common/runner.subr [new file with mode: 0644]
tests/sys/netpfil/common/utils.subr [new file with mode: 0644]