Send DAOs if dtsn differs instead of only when larger than last dtsn in DIO
This commit is contained in:
parent
09db159876
commit
62705a17ea
1 changed files with 1 additions and 1 deletions
|
@ -144,7 +144,7 @@ should_send_dao(rpl_dag_t *dag, rpl_dio_t *dio, rpl_parent_t *p)
|
||||||
{
|
{
|
||||||
/* if MOP is set to no downward routes no DAO should be sent */
|
/* if MOP is set to no downward routes no DAO should be sent */
|
||||||
if(dag->mop == RPL_MOP_NO_DOWNWARD_ROUTES) return 0;
|
if(dag->mop == RPL_MOP_NO_DOWNWARD_ROUTES) return 0;
|
||||||
return dio->dtsn > p->dtsn && p == dag->preferred_parent;
|
return dio->dtsn != p->dtsn && p == dag->preferred_parent;
|
||||||
}
|
}
|
||||||
/************************************************************************/
|
/************************************************************************/
|
||||||
static int
|
static int
|
||||||
|
|
Loading…
Reference in a new issue