- 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
This commit is contained in:
Marcus Schaefer 2011-05-31 08:10:07 +00:00 committed by Git OBS Bridge
parent c687806944
commit 0a8402914a
3 changed files with 21 additions and 2 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

View File

@ -28,7 +28,7 @@ BuildRequires: sysfsutils
BuildRequires: libcap-devel
Summary: IPv4 and IPv6 Networking Utilities
Version: s20101006
Release: 1
Release: 2
License: BSD3c ; GPLv2+
Group: Productivity/Networking/Other
Url: http://www.skbuff.net/iputils
@ -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
@ -112,4 +114,3 @@ rm -rf $RPM_BUILD_ROOT
%attr(644,root,root) %_mandir/man8/*
%changelog