changed so that ext hdr len code checks against buffer size instead of link mtu
This commit is contained in:
parent
9d261eec56
commit
237100f6fa
1 changed files with 1 additions and 1 deletions
2
core/net/rpl/rpl-ext-header.c
Executable file → Normal file
2
core/net/rpl/rpl-ext-header.c
Executable file → Normal file
|
@ -168,7 +168,7 @@ rpl_update_header_empty(void)
|
|||
break;
|
||||
default:
|
||||
PRINTF("RPL: No hop-by-hop option found, creating it\n");
|
||||
if(uip_len + RPL_HOP_BY_HOP_LEN > UIP_LINK_MTU) {
|
||||
if(uip_len + RPL_HOP_BY_HOP_LEN > UIP_BUFSIZE) {
|
||||
PRINTF("RPL: Packet too long: impossible to add hop-by-hop option\n");
|
||||
uip_ext_len = last_uip_ext_len;
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue