iputils/iputils-pingtypo.diff
Marcus Schaefer 0a8402914a - fixed typo in ping output. Since 11.4 sequence tag is icmp_req
instead of icmp_seq beause of that for example cacti ping script
  does not work anymore (bnc #696720)

OBS-URL: https://build.opensuse.org/package/show/network:utilities/iputils?expand=0&rev=22
2011-05-31 08:10:07 +00:00

12 lines
328 B
Diff

--- ping.c 2011-05-31 10:02:27.076182828 +0200
+++ ping.c 2011-05-31 10:02:34.513776200 +0200
@@ -699,7 +699,7 @@
void pr_echo_reply(__u8 *_icp, int len)
{
struct icmphdr *icp = (struct icmphdr *)_icp;
- printf(" icmp_req=%u", ntohs(icp->un.echo.sequence));
+ printf(" icmp_seq=%u", ntohs(icp->un.echo.sequence));
}
int