From 92c62c4bdd9c2a38e0d1e00693d11df0fa11ab85 Mon Sep 17 00:00:00 2001 From: Zdenek Prikryl Date: Oct 16 2008 10:23:21 +0000 Subject: fixed tcp timers info in netstat (#466845) --- diff --git a/net-tools-1.60-netstat-probe.patch b/net-tools-1.60-netstat-probe.patch new file mode 100644 index 0000000..d6d7342 --- /dev/null +++ b/net-tools-1.60-netstat-probe.patch @@ -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); diff --git a/net-tools.spec b/net-tools.spec index f13514a..a86959d 100644 --- a/net-tools.spec +++ b/net-tools.spec @@ -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 - 1.60-91 +- fixed tcp timers info in netstat (#466845) + * Thu Sep 25 2008 Zdenek Prikryl - 1.60-90 - fixed ifconfig's man page (#454271, #432328)