mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-22 10:30:13 +00:00
Merge pull request #1679 from tidyjiang8/bug_chameleon_raw_hdrsize
fix the bug about chameleon raw hdrsize
This commit is contained in:
commit
43c7b43adf
5
core/net/rime/chameleon-raw.c
Normal file → Executable file
5
core/net/rime/chameleon-raw.c
Normal file → Executable file
@ -205,10 +205,7 @@ hdrsize(const struct packetbuf_attrlist *a)
|
||||
continue;
|
||||
}
|
||||
#endif /* CHAMELEON_WITH_MAC_LINK_ADDRESSES */
|
||||
len = a->len;
|
||||
if(len < 8) {
|
||||
len = 8;
|
||||
}
|
||||
len = (a->len & 0xf8) + ((a->len & 7) ? 8: 0);
|
||||
size += len;
|
||||
}
|
||||
return size / 8;
|
||||
|
Loading…
Reference in New Issue
Block a user