From 7885effce1b8cb087bb76c278537f6bbc3cf33ff Mon Sep 17 00:00:00 2001 From: "Andrey Jr. Melnikov" Date: Fri, 9 Oct 2015 12:55:43 +0300 Subject: [PATCH] Fix checksum generation --- src/socket4.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/socket4.c b/src/socket4.c index f1bdf5e..ac760fb 100644 --- a/src/socket4.c +++ b/src/socket4.c @@ -96,6 +96,7 @@ int socket_sendto_ping_ipv4(int s, struct sockaddr *saddr, socklen_t saddr_len, icp->icmp_type = ICMP_ECHO; icp->icmp_code = 0; + icp->icmp_cksum = 0; icp->icmp_seq = htons(icmp_seq_nr); icp->icmp_id = htons(icmp_id_nr); -- 2.43.0