Drop forwarding error packet and send back DAO to originating parent

This commit is contained in:
Laurent Deru 2014-01-31 09:38:42 +01:00
parent a964380155
commit 29f894c07e
4 changed files with 32 additions and 9 deletions

View file

@ -1207,7 +1207,11 @@ uip_process(uint8_t flag)
}
#if UIP_CONF_IPV6_RPL
rpl_update_header_empty();
if(rpl_update_header_empty()) {
/* Packet can not be forwarded */
PRINTF("RPL Forward Option Error\n");
goto drop;
}
#endif /* UIP_CONF_IPV6_RPL */
UIP_IP_BUF->ttl = UIP_IP_BUF->ttl - 1;