Skip to content
Snippets Groups Projects
Commit c35a869a authored by Martine Lenders's avatar Martine Lenders
Browse files

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

ng_icmpv6_echo: fix setting of ID field
parents ad001abb d8285cd3
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment