Page MenuHomeFreeBSD

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

Authored by syrinx on May 27 2020, 12:18 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Oct 24, 5:29 AM
Unknown Object (File)
Mon, Oct 20, 6:18 PM
Unknown Object (File)
Mon, Oct 20, 6:18 PM
Unknown Object (File)
Mon, Oct 20, 6:18 PM
Unknown Object (File)
Mon, Oct 20, 5:05 AM
Unknown Object (File)
Sat, Oct 18, 7:39 AM
Unknown Object (File)
Sep 20 2025, 8:23 PM
Unknown Object (File)
Sep 18 2025, 7:39 PM

Details

Summary

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

Sponsored by: Axiado

Test Plan

On a FreeBSD system with

options IPFIREWALL
options IPDIVERT

enabled in the kernel config file, run

kyua test -k /usr/tests/sys/netinet/Kyuafile divert:ipdivert_ip_output_remote_success
kyua test -k /usr/tests/sys/netinet6/Kyuafile divert:ipdivert_ip6_output_remote_success

and verify the tests are passing.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable