projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
07078c2
)
ping: fix IPv6 pinging. Closes bug 3187
author
Denys Vlasenko
<vda.linux@googlemail.com>
Sat, 5 Feb 2011 02:58:43 +0000
(
03:58
+0100)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Sat, 5 Feb 2011 02:58:43 +0000
(
03:58
+0100)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
networking/ping.c
patch
|
blob
|
history
diff --git
a/networking/ping.c
b/networking/ping.c
index 11ce24eb50791c715d9253ae9b0a2d40b83d6f11..28ccbb0bb89d21cc63356ad409123f72db680d4f 100644
(file)
--- 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;