/[packages]/cauldron/net-tools/current/SOURCES/net-tools-1.60-virtualname.patch
ViewVC logotype

Contents of /cauldron/net-tools/current/SOURCES/net-tools-1.60-virtualname.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 318 - (show annotations) (download)
Fri Jan 7 23:30:25 2011 UTC (13 years, 3 months ago) by tmb
File size: 1515 byte(s)
imported package net-tools
1 --- net-tools-1.60/lib/interface.c.virtualname 2001-02-10 20:31:15.000000000 +0100
2 +++ net-tools-1.60/lib/interface.c 2003-08-19 13:18:01.000000000 +0200
3 @@ -579,18 +579,18 @@
4
5 void ife_print_short(struct interface *ptr)
6 {
7 - printf("%-5.5s ", ptr->name);
8 - printf("%5d %3d", ptr->mtu, ptr->metric);
9 + printf("%-9.9s ", ptr->name);
10 + printf("%5d %3d ", ptr->mtu, ptr->metric);
11 /* If needed, display the interface statistics. */
12 if (ptr->statistics_valid) {
13 - printf("%8llu %6lu %6lu %6lu",
14 + printf("%8llu %6lu %6lu %6lu ",
15 ptr->stats.rx_packets, ptr->stats.rx_errors,
16 ptr->stats.rx_dropped, ptr->stats.rx_fifo_errors);
17 printf("%8llu %6lu %6lu %6lu ",
18 ptr->stats.tx_packets, ptr->stats.tx_errors,
19 ptr->stats.tx_dropped, ptr->stats.tx_fifo_errors);
20 } else {
21 - printf("%-56s", _(" - no statistics available -"));
22 + printf("%-60s", _(" - no statistics available -"));
23 }
24 /* DONT FORGET TO ADD THE FLAGS IN ife_print_long, too */
25 if (ptr->flags == 0)
26 --- net-tools-1.60/netstat.c.virtualname 2001-04-15 16:41:17.000000000 +0200
27 +++ net-tools-1.60/netstat.c 2003-08-19 13:18:34.000000000 +0200
28 @@ -1449,7 +1449,7 @@
29 }
30 if (flag_exp < 2) {
31 ife_short = 1;
32 - printf(_("Iface MTU Met RX-OK RX-ERR RX-DRP RX-OVR TX-OK TX-ERR TX-DRP TX-OVR Flg\n"));
33 + printf(_("Iface MTU Met RX-OK RX-ERR RX-DRP RX-OVR TX-OK TX-ERR TX-DRP TX-OVR Flg\n"));
34 }
35
36 if (for_all_interfaces(do_if_print, &flag_all) < 0) {

  ViewVC Help
Powered by ViewVC 1.1.30