diff --git a/iputils-pingtypo.diff b/iputils-pingtypo.diff new file mode 100644 index 0000000..f0ff12a --- /dev/null +++ b/iputils-pingtypo.diff @@ -0,0 +1,11 @@ +--- 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 diff --git a/iputils.changes b/iputils.changes index ff9446e..7240fe3 100644 --- a/iputils.changes +++ b/iputils.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Tue May 31 10:06:29 CEST 2011 - ms@suse.de + +- 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) + ------------------------------------------------------------------- Fri Nov 19 09:55:18 UTC 2010 - coolo@novell.com diff --git a/iputils.spec b/iputils.spec index 3e96fb9..410a972 100644 --- a/iputils.spec +++ b/iputils.spec @@ -39,6 +39,7 @@ Patch1: iputils-pingnamelookuponce.diff Patch2: iputils-traceroute6-stdint.diff Patch3: iputils-ifenslave.diff Patch6: iputils-s20101006-capabilities.diff +Patch7: iputils-pingtypo.diff BuildRoot: %{_tmppath}/%{name}-%{version}-build PreReq: permissions @@ -55,6 +56,7 @@ cp -a %SOURCE1 . #patch4 #patch5 %patch6 -p1 +%patch7 mkdir linux touch linux/autoconf.h