1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

ping: use IPv6 header build instead of generic one

This commit is contained in:
Oleg Hahm 2016-03-21 12:52:29 +01:00
parent 360413a033
commit 952bd0c7ef

View File

@ -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");