diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2011-02-05 03:58:43 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2011-02-05 03:58:43 +0100 |
commit | 1bb52a9b73772d47a49bcaee0eb4eeb0c68b9b4c (patch) | |
tree | d4bb31e0eae1fb0beac2d6291a0bca62c1b6beae /networking/ping.c | |
parent | 07078c29663c6530e6a35b136422448c3bd6d105 (diff) | |
download | busybox-w32-1bb52a9b73772d47a49bcaee0eb4eeb0c68b9b4c.tar.gz busybox-w32-1bb52a9b73772d47a49bcaee0eb4eeb0c68b9b4c.tar.bz2 busybox-w32-1bb52a9b73772d47a49bcaee0eb4eeb0c68b9b4c.zip |
ping: fix IPv6 pinging. Closes bug 3187
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
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 11ce24eb5..28ccbb0bb 100644 --- a/networking/ping.c +++ b/networking/ping.c | |||
@@ -484,7 +484,7 @@ static void sendping4(int junk UNUSED_PARAM) | |||
484 | #if ENABLE_PING6 | 484 | #if ENABLE_PING6 |
485 | static void sendping6(int junk UNUSED_PARAM) | 485 | static void sendping6(int junk UNUSED_PARAM) |
486 | { | 486 | { |
487 | struct icmp6_hdr *pkt = alloca(datalen + sizeof(struct icmp6_hdr) + 4); | 487 | struct icmp6_hdr *pkt = G.snd_packet; |
488 | 488 | ||
489 | //memset(pkt, 0, datalen + sizeof(struct icmp6_hdr) + 4); | 489 | //memset(pkt, 0, datalen + sizeof(struct icmp6_hdr) + 4); |
490 | pkt->icmp6_type = ICMP6_ECHO_REQUEST; | 490 | pkt->icmp6_type = ICMP6_ECHO_REQUEST; |