-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add route lifetime from Router Advertisement #429
base: master
Are you sure you want to change the base?
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
Sends route lifetime to NETLINK RTA_EXPIRES
Partially addresses #428
Still need to send hoplimit