mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-23 01:29:33 +00:00
Send a no-path DAO when becoming feather mode, so that the network can drop routes to us, which are no longer needed
This commit is contained in:
parent
32511dc512
commit
9cd84563cb
@ -89,11 +89,17 @@ rpl_set_mode(enum rpl_mode m)
|
||||
} else if(m == RPL_MODE_FEATHER) {
|
||||
|
||||
PRINTF("RPL: switching to feather mode\n");
|
||||
mode = m;
|
||||
if(default_instance != NULL) {
|
||||
PRINTF("rpl_set_mode: RPL sending DAO with zero lifetime\n");
|
||||
if(default_instance->current_dag != NULL) {
|
||||
dao_output(default_instance->current_dag->preferred_parent, RPL_ZERO_LIFETIME);
|
||||
}
|
||||
rpl_cancel_dao(default_instance);
|
||||
} else {
|
||||
PRINTF("rpl_set_mode: no default instance\n");
|
||||
}
|
||||
|
||||
mode = m;
|
||||
} else {
|
||||
mode = m;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user