From 952bd0c7effab938e59e9eff1ac4e84613bde9de Mon Sep 17 00:00:00 2001 From: Oleg Hahm Date: Mon, 21 Mar 2016 12:52:29 +0100 Subject: [PATCH] ping: use IPv6 header build instead of generic one --- sys/shell/commands/sc_icmpv6_echo.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sys/shell/commands/sc_icmpv6_echo.c b/sys/shell/commands/sc_icmpv6_echo.c index 3b379426ab..e8d67483f2 100644 --- a/sys/shell/commands/sc_icmpv6_echo.c +++ b/sys/shell/commands/sc_icmpv6_echo.c @@ -254,8 +254,7 @@ int _icmpv6_ping(int argc, char **argv) _set_payload(pkt->data, payload_len); - pkt = gnrc_netreg_hdr_build(GNRC_NETTYPE_IPV6, pkt, NULL, 0, addr.u8, - sizeof(ipv6_addr_t)); + pkt = gnrc_ipv6_hdr_build(pkt, NULL, addr.u8); if (pkt == NULL) { puts("error: packet buffer full");