diff options
Diffstat (limited to 'networking/ping.c')
-rw-r--r-- | networking/ping.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/networking/ping.c b/networking/ping.c index 3aba4906e..5fc80fe4e 100644 --- a/networking/ping.c +++ b/networking/ping.c | |||
@@ -394,7 +394,7 @@ static void sendping4(int junk UNUSED_PARAM) | |||
394 | #if ENABLE_PING6 | 394 | #if ENABLE_PING6 |
395 | static void sendping6(int junk UNUSED_PARAM) | 395 | static void sendping6(int junk UNUSED_PARAM) |
396 | { | 396 | { |
397 | struct icmp6_hdr *pkt = alloca(datalen + sizeof(struct icmp6_hdr) + 4); | 397 | struct icmp6_hdr *pkt = G.snd_packet; |
398 | 398 | ||
399 | //memset(pkt, 0, datalen + sizeof(struct icmp6_hdr) + 4); | 399 | //memset(pkt, 0, datalen + sizeof(struct icmp6_hdr) + 4); |
400 | pkt->icmp6_type = ICMP6_ECHO_REQUEST; | 400 | pkt->icmp6_type = ICMP6_ECHO_REQUEST; |