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)
Sat, Sep 20, 8:23 PM
Unknown Object (File)
Thu, Sep 18, 7:39 PM
Unknown Object (File)
Sep 7 2025, 9:19 PM
Unknown Object (File)
Sep 6 2025, 1:35 AM
Unknown Object (File)
Sep 4 2025, 7:04 AM
Unknown Object (File)
Aug 29 2025, 10:58 AM
Unknown Object (File)
Aug 27 2025, 3:30 PM
Unknown Object (File)
Aug 19 2025, 8:00 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