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

ng_icmpv6_echo: fix setting of ID field

parent 856c951d
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, ...@@ -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 DEBUG("icmpv6_echo: Building echo message with type=%" PRIu8 "id=%" PRIu16
", seq=%" PRIu16, type, id, seq); ", seq=%" PRIu16, type, id, seq);
echo = (ng_icmpv6_echo_t *)pkt->data; echo = (ng_icmpv6_echo_t *)pkt->data;
echo->id = byteorder_htons(id >> 16); echo->id = byteorder_htons(id);
echo->seq = byteorder_htons(seq); echo->seq = byteorder_htons(seq);
if (data != NULL) { 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