Drop forwarding error packet and send back DAO to originating parent
This commit is contained in:
parent
a964380155
commit
29f894c07e
4 changed files with 32 additions and 9 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue