From e8d18c1856179c9354b1974ea39f0f521bc896f3 Mon Sep 17 00:00:00 2001 From: Oleg Hahm Date: Tue, 1 Mar 2016 18:31:55 +0100 Subject: [PATCH] sixlowpan: check the first 2 bits of dispatch byte --- sys/include/net/sixlowpan.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/include/net/sixlowpan.h b/sys/include/net/sixlowpan.h index 583903b2f8..eb9bdac4ea 100644 --- a/sys/include/net/sixlowpan.h +++ b/sys/include/net/sixlowpan.h @@ -71,7 +71,7 @@ extern "C" { */ static inline bool sixlowpan_nalp(uint8_t disp) { - return (disp & 0x3f); + return ((disp & 0xc0) == 0); } /** @} */