gnrc_ipv6_nib: fix for 'holey' NIB#7926
gnrc_ipv6_nib: fix for 'holey' NIB#7926miri64 merged 2 commits intoRIOT-OS:gnrc_netif2_integration/masterfrom
Conversation
7682c2c to
51b3834
Compare
|
Is the iterator in |
|
TL;DR: No. Only the off-link types are affected by that because they have the |
bergzand
left a comment
There was a problem hiding this comment.
A few small nittpicks, nothing too serious here.
| } | ||
|
|
||
| /** | ||
| * Creates three default routes and removes one |
There was a problem hiding this comment.
Maybe clarify here that the first one is removed: "…and removes the first one."
| } | ||
|
|
||
| /** | ||
| * Creates three prefix based routes and removes the second one |
| * Expected result: there should be two prefix list entries returned, the first | ||
| * and the third one | ||
| */ | ||
| static void test_nib_pl_iter__empty_in_the_middle(void) |
There was a problem hiding this comment.
Why test here only the removal of the middle entry and not also the removal of the first as with the routes?
There was a problem hiding this comment.
I only tested the removal of the first one with the routes because for default routes I have no control which one is removed (which I realize might be an issue iff people have multiple default routes [which on an embedded system I would highly discourage anyway], but this is not the topic of this PR)
| } | ||
|
|
||
| /** | ||
| * Creates three prefix list entries and removes the second one |
|
Addressed comments |
b11f182 to
dcac0a5
Compare
|
Squashed |
|
Oops rebased to wrong branch -.- |
When there are holes in the NIB (e.g. when entries were removed) currently the NIB crashes the system due to a failed assertion. This commit tests this behavior (`DEVELHELP` needs to be activated to test this behavior). A fix will follow.
When there are holes in the NIB (e.g. when entries were removed) currently the NIB crashes the system due to a failed assertion (`DEVELHELP` needs to be activated to test this behavior). This fixes this behavior by making the assertion a check that is always compiled in.
dcac0a5 to
72db5e4
Compare
When there are holes in the NIB (e.g. when entries were removed) currently the NIB crashes the system due to a failed assertion (
DEVELHELPneeds to be activated to test this behavior).This fixes this behavior by making the assertion a check that is always compiled in.
Test cases to show the bug before this fix are provided (again:
DEVELHELPneeds to be activated to show the crash).