Adsjut dao_ack_callback to new OFs
This commit is contained in:
parent
bddf8207ed
commit
b42b12d7c8
2 changed files with 22 additions and 3 deletions
|
@ -99,10 +99,10 @@ dao_ack_callback(rpl_parent_t *p, int status)
|
|||
PRINTF("RPL: MRHOF - DAO ACK received with status: %d\n", status);
|
||||
if(status >= RPL_DAO_ACK_UNABLE_TO_ACCEPT) {
|
||||
/* punish the ETX as if this was 10 packets lost */
|
||||
neighbor_link_callback(p, MAC_TX_OK, 10);
|
||||
link_stats_packet_sent(rpl_get_parent_lladdr(p), MAC_TX_OK, 10);
|
||||
} else if(status == RPL_DAO_ACK_TIMEOUT) { /* timeout = no ack */
|
||||
/* punish the total lack of ACK with a similar punishment */
|
||||
neighbor_link_callback(p, MAC_TX_OK, 10);
|
||||
link_stats_packet_sent(rpl_get_parent_lladdr(p), MAC_TX_OK, 10);
|
||||
}
|
||||
}
|
||||
#endif /* RPL_WITH_DAO_ACK */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue