From 237100f6fab9ec3668a1c717738e9df1329ecdd4 Mon Sep 17 00:00:00 2001 From: Joakim Eriksson Date: Tue, 10 Jan 2012 15:51:06 +0100 Subject: [PATCH] changed so that ext hdr len code checks against buffer size instead of link mtu --- core/net/rpl/rpl-ext-header.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100755 => 100644 core/net/rpl/rpl-ext-header.c diff --git a/core/net/rpl/rpl-ext-header.c b/core/net/rpl/rpl-ext-header.c old mode 100755 new mode 100644 index 827853b60..cf8313938 --- a/core/net/rpl/rpl-ext-header.c +++ b/core/net/rpl/rpl-ext-header.c @@ -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;