-
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
Update route if acquired time changes #441
base: master
Are you sure you want to change the base?
Update route if acquired time changes #441
Conversation
Records last time route was acquired so we can determine if change needs to be pushed out to network. Allows for route expiry to be updated by RouterAdvertisement for example.
src/route.c
Outdated
if (ort->rt_mtu == nrt->rt_mtu) | ||
/* If it has not been renewed by RA, and MTU is unchanged, skip */ | ||
if (ort->rt_updated.tv_sec == nrt->rt_updated.tv_sec && | ||
ort->rt_mtu == nrt->rt_mtu) |
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.
Can we not just test if rt_expires is different?
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.
The code originally checked if mtu was identical, we still want it to skip the push if mtu is unchanged, right?
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.
I want to skip the push if the route is unchanged. So compare mtu and expires - if the same we skip.
If a route gets an update (say from an RA), consider it changed so new expiry gets pushed out to system.