[git commit master 1/1] ping: fix IPv6 pinging. Closes bug 3187

Denys Vlasenko vda.linux at googlemail.com
Sat Feb 5 02:58:43 UTC 2011


commit: http://git.busybox.net/busybox/commit/?id=1bb52a9b73772d47a49bcaee0eb4eeb0c68b9b4c
branch: http://git.busybox.net/busybox/commit/?id=refs/heads/master

Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 networking/ping.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/networking/ping.c b/networking/ping.c
index 11ce24e..28ccbb0 100644
--- a/networking/ping.c
+++ b/networking/ping.c
@@ -484,7 +484,7 @@ static void sendping4(int junk UNUSED_PARAM)
 #if ENABLE_PING6
 static void sendping6(int junk UNUSED_PARAM)
 {
-	struct icmp6_hdr *pkt = alloca(datalen + sizeof(struct icmp6_hdr) + 4);
+	struct icmp6_hdr *pkt = G.snd_packet;
 
 	//memset(pkt, 0, datalen + sizeof(struct icmp6_hdr) + 4);
 	pkt->icmp6_type = ICMP6_ECHO_REQUEST;
-- 
1.7.3.4



More information about the busybox-cvs mailing list