From 695c7d74b8c4b47b080fa6a382f0482d1a4b96c9 Mon Sep 17 00:00:00 2001 From: Joakim Eriksson Date: Mon, 9 May 2011 09:57:37 +0200 Subject: [PATCH] fixed bug in 6lowpan compression when compressing --- core/net/sicslowpan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/net/sicslowpan.c b/core/net/sicslowpan.c index 74c0de07e..9bf349a4c 100644 --- a/core/net/sicslowpan.c +++ b/core/net/sicslowpan.c @@ -765,7 +765,7 @@ uncompress_hdr_hc06(uint16_t ip_len) SICSLOWPAN_IP_BUF->vtc = 0x60 | ((*hc06_ptr >> 2) & 0x0f); SICSLOWPAN_IP_BUF->tcflow = ((*hc06_ptr << 6) & 0xC0) | ((*hc06_ptr >> 2) & 0x30); SICSLOWPAN_IP_BUF->flow = 0; - hc06_ptr += 3; + hc06_ptr += 1; } else { /* Traffic class is compressed */ SICSLOWPAN_IP_BUF->vtc = 0x60;