Page MenuHomeFreeBSD

routing: Add tests for prefsrc route attribute
ClosedPublic

Authored by pouria on Sat, Jul 18, 2:48 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Aug 4, 12:32 PM
Unknown Object (File)
Tue, Aug 4, 11:18 AM
Unknown Object (File)
Mon, Aug 3, 9:48 PM
Unknown Object (File)
Sat, Aug 1, 1:45 PM
Unknown Object (File)
Sat, Aug 1, 8:30 AM
Unknown Object (File)
Fri, Jul 31, 6:46 AM
Unknown Object (File)
Fri, Jul 31, 12:55 AM
Unknown Object (File)
Thu, Jul 30, 3:53 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 74916
Build 71799: arc lint + arc unit

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