]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
netpfil tests: Add functions for testing routing scenarios
authorKristof Provost <kp@FreeBSD.org>
Sat, 4 Mar 2023 13:35:24 +0000 (14:35 +0100)
committerKristof Provost <kp@FreeBSD.org>
Sat, 4 Mar 2023 13:35:24 +0000 (14:35 +0100)
commit38e2d5db2ab12f74217e0a8546f7d9c77f782592
treeeebae466e17e8fbfb23c8acb06cebb6a5267a6a5
parentf5b204adf4a61e4040dc0af55662a0d22a8cf42b
netpfil tests: Add functions for testing routing scenarios

Many pf tests use identical setup where one jail is a router and
optionally another jail is a server. Add functions to create such jails
for IPv6 and IPv4 and functions to perform tests on such setup.

Add tests using those functions: scrub actions, routing table, tcp
sequence number modulation.

Reviewed by: kp
Sponsored by: InnoGames GmbH
Differential Revision: https://reviews.freebsd.org/D38126
tests/sys/netpfil/pf/Makefile
tests/sys/netpfil/pf/fragmentation.sh
tests/sys/netpfil/pf/modulate.sh [moved from tests/sys/netpfil/pf/checksum.sh with 55% similarity]
tests/sys/netpfil/pf/rtable.sh [new file with mode: 0644]
tests/sys/netpfil/pf/scrub.sh [new file with mode: 0644]
tests/sys/netpfil/pf/utils.subr