This commit is contained in:
parent
1ba5cfe121
commit
36dace4e1d
27
net-tools-1.60-interface_mtu.diff
Normal file
27
net-tools-1.60-interface_mtu.diff
Normal file
@ -0,0 +1,27 @@
|
||||
--- net-tools-1.60/lib/interface.c 2009-03-18 15:16:21.000000000 +0100
|
||||
+++ net-tools-1.60/lib/interface.c 2009-03-18 15:37:42.000000000 +0100
|
||||
@@ -610,10 +610,10 @@
|
||||
printf("%5d %3d", ptr->mtu, ptr->metric);
|
||||
/* If needed, display the interface statistics. */
|
||||
if (ptr->statistics_valid) {
|
||||
- printf("%8llu %6lu %6lu %6lu",
|
||||
+ printf(" %8llu %6lu %6lu %6lu",
|
||||
ptr->stats.rx_packets, ptr->stats.rx_errors,
|
||||
ptr->stats.rx_dropped, ptr->stats.rx_fifo_errors);
|
||||
- printf("%8llu %6lu %6lu %6lu ",
|
||||
+ printf(" %8llu %6lu %6lu %6lu ",
|
||||
ptr->stats.tx_packets, ptr->stats.tx_errors,
|
||||
ptr->stats.tx_dropped, ptr->stats.tx_fifo_errors);
|
||||
} else {
|
||||
diff -ur net-tools-1.60.orig/netstat.c net-tools-1.60/netstat.c
|
||||
--- net-tools-1.60.orig/netstat.c 2009-03-18 15:16:21.000000000 +0100
|
||||
+++ net-tools-1.60/netstat.c 2009-03-18 15:39:15.000000000 +0100
|
||||
@@ -1916,7 +1916,7 @@
|
||||
}
|
||||
if (flag_exp < 2) {
|
||||
ife_short = 1;
|
||||
- printf(_("Iface MTU Met RX-OK RX-ERR RX-DRP RX-OVR TX-OK TX-ERR TX-DRP TX-OVR Flg\n"));
|
||||
+ printf(_("Iface MTU Met RX-OK RX-ERR RX-DRP RX-OVR TX-OK TX-ERR TX-DRP TX-OVR Flg\n"));
|
||||
}
|
||||
|
||||
get_max_ifacename();
|
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Mar 25 16:23:29 CET 2009 - ms@suse.de
|
||||
|
||||
- increased field length for display of MTU value (bnc #486014)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Nov 20 12:24:38 CET 2008 - ms@suse.de
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package net-tools (Version 1.60)
|
||||
#
|
||||
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -28,7 +28,7 @@ Provides: iputils:/usr/share/man/man8/traceroute6.1.gz
|
||||
Obsoletes: traceroute net_tool
|
||||
AutoReqProv: on
|
||||
Version: 1.60
|
||||
Release: 725
|
||||
Release: 726
|
||||
Summary: Important Programs for Networking
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
Source: net-tools-%{version}.tar.bz2
|
||||
@ -67,6 +67,7 @@ Patch31: net-tools-1.60-tcp-recvq-listen.patch
|
||||
Patch32: net-tools-1.60-netstat-ci.diff
|
||||
Patch33: net-tools-1.60-ifconfig-SIOCSIFNETMASK.diff
|
||||
Patch34: net-tools-1.60-interface_socket.diff
|
||||
Patch35: net-tools-1.60-interface_mtu.diff
|
||||
|
||||
%description
|
||||
This package contains essential programs for network administration and
|
||||
@ -119,6 +120,7 @@ cd ..
|
||||
%patch32 -p1
|
||||
%patch33 -p1
|
||||
%patch34 -p1
|
||||
%patch35 -p1
|
||||
|
||||
%build
|
||||
make config
|
||||
@ -172,6 +174,8 @@ rm -rf $RPM_BUILD_ROOT
|
||||
%lang(pt_BR) %doc %_mandir/pt_BR/man*/*
|
||||
|
||||
%changelog
|
||||
* Wed Mar 25 2009 ms@suse.de
|
||||
- increased field length for display of MTU value (bnc #486014)
|
||||
* Thu Nov 20 2008 ms@suse.de
|
||||
- don't show af_inet socket warning for netstat -i (bnc #430864)
|
||||
* Thu Nov 06 2008 ms@suse.de
|
||||
|
Loading…
Reference in New Issue
Block a user