fixed tcp timers info in netstat (#466845)

This commit is contained in:
Zdenek Prikryl 2008-10-16 10:23:21 +00:00
parent d2b12288c3
commit 92c62c4bdd
2 changed files with 21 additions and 1 deletions

View File

@ -0,0 +1,15 @@
diff -up net-tools-1.60/netstat.c.probe net-tools-1.60/netstat.c
--- net-tools-1.60/netstat.c.probe 2008-10-15 12:47:41.000000000 +0200
+++ net-tools-1.60/netstat.c 2008-10-15 12:49:48.000000000 +0200
@@ -1061,6 +1061,11 @@ static void tcp_do_one(int lnr, const ch
(double) time_len / HZ, retr, timeout);
break;
+ case 4:
+ snprintf(timers, sizeof(timers), _("probe (%2.2f/%ld/%d)"),
+ (double) time_len / HZ, retr, timeout);
+ break;
+
default:
snprintf(timers, sizeof(timers), _("unkn-%d (%2.2f/%ld/%d)"),
timer_run, (double) time_len / HZ, retr, timeout);

View File

@ -3,7 +3,7 @@
Summary: Basic networking tools
Name: net-tools
Version: 1.60
Release: 90%{?dist}
Release: 91%{?dist}
License: GPL+
Group: System Environment/Base
URL: http://www.tazenda.demon.co.uk/phil/net-tools/
@ -81,6 +81,7 @@ Patch67: net-tools-1.60-i-option.patch
Patch68: net-tools-1.60-a-option.patch
Patch69: net-tools-1.60-clear-flag.patch
Patch70: net-tools-1.60-metric-tunnel-man.patch
Patch71: net-tools-1.60-netstat-probe.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires(post): /sbin/chkconfig
@ -162,6 +163,7 @@ ifconfig, netstat, route, and others.
%patch68 -p1 -b .a-option
%patch69 -p1 -b .clear-flag
%patch70 -p1 -b .metric-tunnel-man
%patch71 -p1 -b .probe
cp %SOURCE2 ./config.h
cp %SOURCE3 ./config.make
@ -277,6 +279,9 @@ exit 0
%{_sysconfdir}/rc.d/init.d/netplugd
%changelog
* Thu Oct 16 2008 Zdenek Prikryl <zprikryl@redhat.com> - 1.60-91
- fixed tcp timers info in netstat (#466845)
* Thu Sep 25 2008 Zdenek Prikryl <zprikryl@redhat.com> - 1.60-90
- fixed ifconfig's man page (#454271, #432328)