Merge pull request #1635 from simonduq/pr/dao-no-k-flag-in-nopath

RPL: do not add K flag to no-path DAO as we discard the ACK anyway
This commit is contained in:
Nicolas Tsiftes 2016-04-28 14:45:01 +02:00
commit 70abb211e3

View file

@ -1050,7 +1050,9 @@ dao_output_target_seq(rpl_parent_t *parent, uip_ipaddr_t *prefix,
buffer[pos] |= RPL_DAO_D_FLAG;
#endif /* RPL_DAO_SPECIFY_DAG */
#if RPL_WITH_DAO_ACK
buffer[pos] |= RPL_DAO_K_FLAG;
if(lifetime != RPL_ZERO_LIFETIME) {
buffer[pos] |= RPL_DAO_K_FLAG;
}
#endif /* RPL_WITH_DAO_ACK */
++pos;
buffer[pos++] = 0; /* reserved */