28 lines
1.1 KiB
Diff
28 lines
1.1 KiB
Diff
--- 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();
|