Skip to content

Commit

Permalink
ping: use IPv6 header build instead of generic one
Browse files Browse the repository at this point in the history
  • Loading branch information
OlegHahm committed Mar 23, 2016
1 parent 360413a commit 952bd0c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sys/shell/commands/sc_icmpv6_echo.c
Expand Up @@ -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");
Expand Down

0 comments on commit 952bd0c

Please sign in to comment.