Send DAOs if dtsn differs instead of only when larger than last dtsn in DIO

This commit is contained in:
Joakim Eriksson 2011-09-05 11:36:53 +02:00
parent 09db159876
commit 62705a17ea

View file

@ -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(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