RPL DAO ACK: increment DAO seqno before storing it to my_dao_seqno
This commit is contained in:
parent
f47c0f579d
commit
0379398d7c
@ -969,6 +969,7 @@ dao_output(rpl_parent_t *parent, uint8_t lifetime)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
RPL_LOLLIPOP_INCREMENT(dao_sequence);
|
||||||
#if RPL_WITH_DAO_ACK
|
#if RPL_WITH_DAO_ACK
|
||||||
/* set up the state since this will be the first transmission of DAO */
|
/* set up the state since this will be the first transmission of DAO */
|
||||||
/* retransmissions will call directly to dao_output_target_seq */
|
/* retransmissions will call directly to dao_output_target_seq */
|
||||||
@ -995,7 +996,6 @@ dao_output(rpl_parent_t *parent, uint8_t lifetime)
|
|||||||
void
|
void
|
||||||
dao_output_target(rpl_parent_t *parent, uip_ipaddr_t *prefix, uint8_t lifetime)
|
dao_output_target(rpl_parent_t *parent, uip_ipaddr_t *prefix, uint8_t lifetime)
|
||||||
{
|
{
|
||||||
RPL_LOLLIPOP_INCREMENT(dao_sequence);
|
|
||||||
dao_output_target_seq(parent, prefix, lifetime, dao_sequence);
|
dao_output_target_seq(parent, prefix, lifetime, dao_sequence);
|
||||||
}
|
}
|
||||||
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
||||||
|
Loading…
Reference in New Issue
Block a user