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
F103097109: D46796.id143751.diff
Wed, Nov 20, 10:43 PM
Unknown Object (File)
Wed, Nov 20, 6:41 AM
Unknown Object (File)
Wed, Nov 20, 6:39 AM
Unknown Object (File)
Wed, Nov 20, 4:05 AM
Unknown Object (File)
Sun, Nov 17, 11:33 PM
Unknown Object (File)
Sat, Nov 9, 7:24 PM
Unknown Object (File)
Sat, Nov 9, 7:24 PM
Unknown Object (File)
Sat, Nov 9, 7:24 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.