mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
gnrc_ipv6: fix packet snip switch-up
This commit is contained in:
parent
38ee38e791
commit
5bdf3670e3
@ -795,7 +795,7 @@ static void _receive(gnrc_pktsnip_t *pkt)
|
|||||||
|
|
||||||
/* if available, remove any padding that was added by lower layers
|
/* if available, remove any padding that was added by lower layers
|
||||||
* to fulfill their minimum size requirements (e.g. ethernet) */
|
* to fulfill their minimum size requirements (e.g. ethernet) */
|
||||||
if (byteorder_ntohs(hdr->len) < pkt->size) {
|
if ((ipv6 != pkt) && (byteorder_ntohs(hdr->len) < pkt->size)) {
|
||||||
gnrc_pktbuf_realloc_data(pkt, byteorder_ntohs(hdr->len));
|
gnrc_pktbuf_realloc_data(pkt, byteorder_ntohs(hdr->len));
|
||||||
}
|
}
|
||||||
else if (byteorder_ntohs(hdr->len) >
|
else if (byteorder_ntohs(hdr->len) >
|
||||||
|
Loading…
Reference in New Issue
Block a user