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:
parent
8e52f22b25
commit
a7a64b722b
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user