1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

correct byte order for IPv6 length field

This commit is contained in:
Oleg Hahm 2013-10-24 01:11:01 +02:00
parent f6c37b0b4f
commit 9bd8e35c54

View File

@ -167,6 +167,7 @@ void sixlowpan_lowpan_sendto(const ieee_802154_long_t *dest,
packet_length = comp_len; packet_length = comp_len;
} }
else { else {
ipv6_buf->length = HTONS(ipv6_buf->length);
lowpan_ipv6_set_dispatch(data); lowpan_ipv6_set_dispatch(data);
} }