Proper check if divert(4) module is present by the relevant tests

Fix the netinet/netinet6 divert tests falsely reporting 'ipdivert module is
not loaded' when the divert module is built into the kernel

Sponsored by:	Axiado
Differential Revision:	https://reviews.freebsd.org/D25026
This commit is contained in:
Shteryana Shopova 2020-05-27 16:33:00 +00:00
parent 8e52f22b25
commit a7a64b722b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=361553
2 changed files with 2 additions and 2 deletions

View file

@ -31,7 +31,7 @@
. $(atf_get_srcdir)/../common/vnet.subr
load_divert_module() {
kldstat -q -n ipdivert
kldstat -q -m ipdivert
if [ $? -ne 0 ]; then
atf_skip "ipdivert module is not loaded"
fi

View file

@ -31,7 +31,7 @@
. $(atf_get_srcdir)/../common/vnet.subr
load_divert_module() {
kldstat -q -n ipdivert
kldstat -q -m ipdivert
if [ $? -ne 0 ]; then
atf_skip "ipdivert module is not loaded"
fi