Accepting request 72225 from network:utilities

- 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/request/show/72225
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/iputils?expand=0&rev=20
This commit is contained in:
Sascha Peilicke 2011-05-31 11:03:30 +00:00 committed by Git OBS Bridge
commit 135dec6711
3 changed files with 20 additions and 0 deletions

11
iputils-pingtypo.diff Normal file
View File

@ -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

View File

@ -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 Fri Nov 19 09:55:18 UTC 2010 - coolo@novell.com

View File

@ -39,6 +39,7 @@ Patch1: iputils-pingnamelookuponce.diff
Patch2: iputils-traceroute6-stdint.diff Patch2: iputils-traceroute6-stdint.diff
Patch3: iputils-ifenslave.diff Patch3: iputils-ifenslave.diff
Patch6: iputils-s20101006-capabilities.diff Patch6: iputils-s20101006-capabilities.diff
Patch7: iputils-pingtypo.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
PreReq: permissions PreReq: permissions
@ -55,6 +56,7 @@ cp -a %SOURCE1 .
#patch4 #patch4
#patch5 #patch5
%patch6 -p1 %patch6 -p1
%patch7
mkdir linux mkdir linux
touch linux/autoconf.h touch linux/autoconf.h