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
F103040629: D46796.diff
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
Unknown Object (File)
Sat, Nov 9, 7:16 PM
Unknown Object (File)
Wed, Nov 6, 9:26 AM
Unknown Object (File)
Sat, Nov 2, 3:39 AM

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.