Skip to content
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

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

ColinMcInnes
Copy link
Contributor

If a route gets an update (say from an RA), consider it changed so new expiry gets pushed out to system.

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)
Copy link
Member

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?

Copy link
Contributor Author

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?

Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants