1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-26 23:11:19 +01:00

net/sixlowpan: Fixed calculation of fragment size

Fragment size calculation previously failed for devices that are able to
transmit bigger layer 2 PDUs that 802.15.4 devices. This commit fixes the issue.
This commit is contained in:
Marian Buschsieweke 2019-02-12 09:45:31 +01:00
parent 8eb02b6cd1
commit 194d340a64
No known key found for this signature in database
GPG Key ID: 61F64C6599B1539F

View File

@ -44,7 +44,7 @@ static uint16_t _tag;
static inline uint16_t _floor8(uint16_t length)
{
return length & 0xf8U;
return length & 0xfff8U;
}
static inline size_t _min(size_t a, size_t b)