Page MenuHomeFreeBSD

routing: Add tests for prefsrc route attribute
ClosedPublic

Authored by pouria on Jul 18 2026, 2:48 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Aug 18, 3:44 AM
Unknown Object (File)
Wed, Aug 12, 10:45 AM
Unknown Object (File)
Mon, Aug 10, 8:08 PM
Unknown Object (File)
Mon, Aug 10, 12:32 PM
Unknown Object (File)
Sat, Aug 8, 11:06 PM
Unknown Object (File)
Sat, Aug 8, 8:33 AM
Unknown Object (File)
Fri, Aug 7, 6:02 AM
Unknown Object (File)
Fri, Aug 7, 6:02 AM

Details

Summary

Add tests for both IPv4 and IPv6 routes with the prefsrc attribute.
Also test IPv4 routes over IPv6 nexthops and borrow their IPv4
addresses from the loopback interface.

Test Plan
# kyua test -k /usr/tests/Kyuafile sys/net/routing/test_routing
sys/net/routing/test_routing:add_v4route_with_prefsrc  ->  passed  [0.179s]
sys/net/routing/test_routing:add_v4v6route_with_prefsrc  ->  passed  [0.180s]
sys/net/routing/test_routing:add_v6route_with_prefsrc  ->  passed  [0.167s]

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Note: you may squash the test together with the commit that adds the feature. Up to you. There is no policy.

This revision is now accepted and ready to land.Tue, Jul 28, 3:17 AM