Skip to content

Commit

Permalink
Rank error packet should not be forwarded
Browse files Browse the repository at this point in the history
  • Loading branch information
laurentderu committed Nov 14, 2014
1 parent 778d40d commit a964380
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions core/net/rpl/rpl-ext-header.c
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,9 @@ rpl_verify_header(int uip_ext_opt_offset)
sender_closer);
if(UIP_EXT_HDR_OPT_RPL_BUF->flags & RPL_HDR_OPT_RANK_ERR) {
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);
/* Forward the packet anyway. */
return 0;
return 1;
}
PRINTF("RPL: Single error tolerated\n");
UIP_EXT_HDR_OPT_RPL_BUF->flags |= RPL_HDR_OPT_RANK_ERR;
Expand Down

0 comments on commit a964380

Please sign in to comment.