Page MenuHomeFreeBSD

netlink: Handle RTA_PREFSRC on RTM_NEWROUTE
ClosedPublic

Authored by email_luiz.eng.br on Sep 26 2024, 3:36 PM.
Tags
None
Referenced Files
F132332195: D46796.id144089.diff
Wed, Oct 15, 11:44 PM
F132332193: D46796.id143751.diff
Wed, Oct 15, 11:44 PM
F132332189: D46796.id.diff
Wed, Oct 15, 11:44 PM
F132332187: D46796.id144101.diff
Wed, Oct 15, 11:44 PM
Unknown Object (File)
Wed, Oct 15, 1:15 PM
Unknown Object (File)
Wed, Oct 15, 9:33 AM
Unknown Object (File)
Sat, Oct 11, 12:34 AM
Unknown Object (File)
Mon, Oct 6, 2:12 PM

Details

Summary

While investigating a problem with the source address selection for IPv4 over IPv6 nexthop routes, I decided to try setting the prefsrc on the routes exported from BIRD, only to realize that there was no support for it.

With this patch, I was able to set a proper source address for routes added via Netlink.

Sponsored by: InnoGames GmbH

Diff Detail

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

Event Timeline

Thank you for working on this!
Could you please add the patch with context & add a corresponding test?
Thank you!

Could you please add the patch with context & add a corresponding test?

Will do, just give me a few days for the tests.

This revision was not accepted when it landed; it landed in state Needs Review.Oct 2 2024, 6:38 AM
This revision was automatically updated to reflect the committed changes.