mirror of
https://github.com/sheumann/hush.git
synced 2024-12-23 05:29:58 +00:00
ping: fix IPv6 pinging. Closes bug 3187
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
07078c2966
commit
1bb52a9b73
@ -484,7 +484,7 @@ static void sendping4(int junk UNUSED_PARAM)
|
|||||||
#if ENABLE_PING6
|
#if ENABLE_PING6
|
||||||
static void sendping6(int junk UNUSED_PARAM)
|
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);
|
//memset(pkt, 0, datalen + sizeof(struct icmp6_hdr) + 4);
|
||||||
pkt->icmp6_type = ICMP6_ECHO_REQUEST;
|
pkt->icmp6_type = ICMP6_ECHO_REQUEST;
|
||||||
|
Loading…
Reference in New Issue
Block a user