Add route lifetime from Router Advertisement#429
Add route lifetime from Router Advertisement#429rsmarples merged 18 commits intoNetworkConfiguration:masterfrom
Conversation
Sends route lifetime to NETLINK RTA_EXPIRES Partially addresses NetworkConfiguration#428
|
This looks nice! Can we also extract the lifetime in if_copyrt in if-linux.c please? |
Yes, I can do that. |
Remove debug logging as well.
rsmarples
left a comment
There was a problem hiding this comment.
Gah, and I forgot one last thing.
Before setting each rt_expires, check that the lifetime (before working out elapsed) is not ND6_INFINITE_LIFETIME.
check acquired time for routes only fetch "now" if routes available.
Something like this? |
|
Exactly! We have a lot of that code, so maybe we benefit from a helper function in common.c? then we can simply write:
Thoughts? If you like it, |
If not set to infinite, lifetime is shortened by time elapsed since acquired
rsmarples
left a comment
There was a problem hiding this comment.
Last round of changes, then I think we're good to merge!
rsmarples
left a comment
There was a problem hiding this comment.
The CI picked up a warning we need to address, but this is looking really good now.
|
@ColinMcInnes thanks for the excellent work here. |
|
@ColinMcInnes I used the new function to reduce more code in 7b94a2e Hopefully everything still works! |
Sends route lifetime to NETLINK RTA_EXPIRES
Partially addresses #428
Still need to send hoplimit