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:
parent
9c52035814
commit
4312aa67e3
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user