From d8285cd3d257253e7d1c6c2cd400f60d3e617692 Mon Sep 17 00:00:00 2001 From: Martine Lenders <mlenders@inf.fu-berlin.de> Date: Sat, 16 May 2015 18:35:48 +0200 Subject: [PATCH] ng_icmpv6_echo: fix setting of ID field --- sys/net/network_layer/ng_icmpv6/echo/ng_icmpv6_echo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/net/network_layer/ng_icmpv6/echo/ng_icmpv6_echo.c b/sys/net/network_layer/ng_icmpv6/echo/ng_icmpv6_echo.c index 2ae481ed7f..95d4460306 100644 --- a/sys/net/network_layer/ng_icmpv6/echo/ng_icmpv6_echo.c +++ b/sys/net/network_layer/ng_icmpv6/echo/ng_icmpv6_echo.c @@ -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) { -- GitLab