1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-27 15:31:17 +01:00

Merge pull request #3002 from authmillenon/ng_icmpv6_echo/fix/set-id

ng_icmpv6_echo: fix setting of ID field
This commit is contained in:
Martine Lenders 2015-05-17 02:47:17 +02:00
commit c35a869a90

View File

@ -34,7 +34,7 @@ ng_pktsnip_t *ng_icmpv6_echo_build(uint8_t type, uint16_t id, uint16_t seq,
DEBUG("icmpv6_echo: Building echo message with type=%" PRIu8 "id=%" PRIu16
", seq=%" PRIu16, type, id, seq);
echo = (ng_icmpv6_echo_t *)pkt->data;
echo->id = byteorder_htons(id >> 16);
echo->id = byteorder_htons(id);
echo->seq = byteorder_htons(seq);
if (data != NULL) {