-
Notifications
You must be signed in to change notification settings - Fork 2k
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
gnrc_rpl: new default route when old one was deleted #5141
gnrc_rpl: new default route when old one was deleted #5141
Conversation
19fb23b
to
eae0e4c
Compare
rebased to current master and changed the approach of updating the fib |
how to test? |
sizeof(ipv6_addr_t), | ||
FIB_FLAG_RPL_ROUTE, | ||
(parent->next->lifetime - now) * SEC_IN_MS); | ||
} |
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.
else we keep the old one?
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.
yes, for the case that this parent (to delete) is not the preferred parent, the fib default entry is not removed and should still point to the preferred parent
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.
oops, looked at the wrong if:
if there is no parent->next
then we basically have no parents left, so we cannot add a new fib entry
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.
but we could remove the removed parent from the FIB
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.
That's done in line 200 if I understand you correctly
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.
ahh sry 👓
Taking the next parent from the parent set seems a correct approach to me, and the RFC6550 doesn't give a detailed procedure which parent should be chosen [1]. |
Murdock is happy - GO |
Currently, when a node has two parents and the preferred parent times out, the fib entry is not updated accordingly to point to the new preferred parent until a DIO is received.
This PR adds the new default route pointing to the next preferred parent as soon as the former one gets deleted.
Depends on #5135