Add missing return values in rpl_update_header_empty()
This commit is contained in:
parent
7286c9a635
commit
bb1e0c1cbc
|
@ -194,12 +194,12 @@ rpl_update_header_empty(void)
|
||||||
if(UIP_HBHO_BUF->len != RPL_HOP_BY_HOP_LEN - 8) {
|
if(UIP_HBHO_BUF->len != RPL_HOP_BY_HOP_LEN - 8) {
|
||||||
PRINTF("RPL: Hop-by-hop extension header has wrong size\n");
|
PRINTF("RPL: Hop-by-hop extension header has wrong size\n");
|
||||||
uip_ext_len = last_uip_ext_len;
|
uip_ext_len = last_uip_ext_len;
|
||||||
return;
|
return 0;
|
||||||
}
|
}
|
||||||
if(UIP_EXT_HDR_OPT_RPL_BUF->opt_type != UIP_EXT_HDR_OPT_RPL) {
|
if(UIP_EXT_HDR_OPT_RPL_BUF->opt_type != UIP_EXT_HDR_OPT_RPL) {
|
||||||
PRINTF("RPL: Non RPL Hop-by-hop option support not implemented\n");
|
PRINTF("RPL: Non RPL Hop-by-hop option support not implemented\n");
|
||||||
uip_ext_len = last_uip_ext_len;
|
uip_ext_len = last_uip_ext_len;
|
||||||
return;
|
return 0;
|
||||||
}
|
}
|
||||||
if(UIP_EXT_HDR_OPT_RPL_BUF->opt_len != RPL_HDR_OPT_LEN) {
|
if(UIP_EXT_HDR_OPT_RPL_BUF->opt_len != RPL_HDR_OPT_LEN) {
|
||||||
PRINTF("RPL: RPL Hop-by-hop option has wrong length\n");
|
PRINTF("RPL: RPL Hop-by-hop option has wrong length\n");
|
||||||
|
|
Loading…
Reference in a new issue