#578472 iputils-ping: please parse csfailed to gather_statistics() in ping.c

Package:
iputils-ping
Source:
iputils
Description:
Tools to test the reachability of network hosts
Submitter:
Geoff Crompton
Date:
2010-04-20 06:36:05 UTC
Severity:
normal
#578472#5
Date:
2010-04-20 06:27:15 UTC
From:
To:
Please include the following patch so that ping reports how many packets
failed the icmp checksum.
--- ping.c  (revision 150)
+++ ping.c  (working copy)
@@ -709,7 +709,7 @@
             return 1;           /* 'Twas not our ECHO */
         if (gather_statistics((__u8*)(icp+1), cc,
                       ntohs(icp->un.echo.sequence),
-                     ip->ttl, 0, tv, pr_addr(from->sin_addr.s_addr)))
+                     ip->ttl, csfailed, tv,
pr_addr(from->sin_addr.s_addr)))
             return 0;
     } else {
         /* We fall here when a redirect or source quench arrived.