tests/sys/netinet/fibs_test: skip selected tests when firewalls are enabled

Some tests send packets over epair(4) interfaces. Firewalls can cause
spurious failures.

Reviewed by:	ngie
MFC after:	3 weeks
Sponsored by:	Spectra Logic Corp
Differential Revision:	https://reviews.freebsd.org/D11917
This commit is contained in:
Alan Somers 2017-08-08 15:37:21 +00:00
parent 9c52035814
commit 4312aa67e3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=322255

View File

@ -766,6 +766,12 @@ get_epair()
{
local EPAIRD
if (which pfctl && pfctl -s info | grep -q 'Status: Enabled') ||
[ `sysctl -n net.inet.ip.fw.enable` = "1" ] ||
(which ipf && ipf -V); then
atf_skip "firewalls interfere with this test"
fi
if EPAIRD=`ifconfig epair create`; then
# Record the epair device so we can clean it up later
echo ${EPAIRD} >> "ifaces_to_cleanup"