fix the bug about chalemeon raw hdrsize
This commit is contained in:
parent
3a34b1f695
commit
f5919a2a45
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;
|
continue;
|
||||||
}
|
}
|
||||||
#endif /* CHAMELEON_WITH_MAC_LINK_ADDRESSES */
|
#endif /* CHAMELEON_WITH_MAC_LINK_ADDRESSES */
|
||||||
len = a->len;
|
len = (a->len & 0xf8) + ((a->len & 7) ? 8: 0);
|
||||||
if(len < 8) {
|
|
||||||
len = 8;
|
|
||||||
}
|
|
||||||
size += len;
|
size += len;
|
||||||
}
|
}
|
||||||
return size / 8;
|
return size / 8;
|
||||||
|
|
Loading…
Reference in a new issue