mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-22 10:30:13 +00:00
Rank error packet should not be forwarded
This commit is contained in:
parent
778d40dab7
commit
a964380155
@ -138,10 +138,9 @@ rpl_verify_header(int uip_ext_opt_offset)
|
|||||||
sender_closer);
|
sender_closer);
|
||||||
if(UIP_EXT_HDR_OPT_RPL_BUF->flags & RPL_HDR_OPT_RANK_ERR) {
|
if(UIP_EXT_HDR_OPT_RPL_BUF->flags & RPL_HDR_OPT_RANK_ERR) {
|
||||||
PRINTF("RPL: Rank error signalled in RPL option!\n");
|
PRINTF("RPL: Rank error signalled in RPL option!\n");
|
||||||
/* We should try to repair it, not implemented for the moment */
|
/* Packet must be dropped and dio trickle timer reset, see RFC6550 - 11.2.2.2 */
|
||||||
rpl_reset_dio_timer(instance);
|
rpl_reset_dio_timer(instance);
|
||||||
/* Forward the packet anyway. */
|
return 1;
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
PRINTF("RPL: Single error tolerated\n");
|
PRINTF("RPL: Single error tolerated\n");
|
||||||
UIP_EXT_HDR_OPT_RPL_BUF->flags |= RPL_HDR_OPT_RANK_ERR;
|
UIP_EXT_HDR_OPT_RPL_BUF->flags |= RPL_HDR_OPT_RANK_ERR;
|
||||||
|
Loading…
Reference in New Issue
Block a user