sixlowpan: check the first 2 bits of dispatch byte

This commit is contained in:
Oleg Hahm 2016-03-01 18:31:55 +01:00
parent 754a028929
commit e8d18c1856

View File

@ -71,7 +71,7 @@ extern "C" {
*/
static inline bool sixlowpan_nalp(uint8_t disp)
{
return (disp & 0x3f);
return ((disp & 0xc0) == 0);
}
/** @} */