| 1 | From Rawhide. Show Virtual Name in netstat. |
| 2 | |
| 3 | diff -Naur net-tools-1.60.orig/lib/interface.c net-tools-1.60/lib/interface.c |
| 4 | --- net-tools-1.60.orig/lib/interface.c 2001-02-10 19:31:15.000000000 +0000 |
| 5 | +++ net-tools-1.60/lib/interface.c 2003-09-12 22:50:35.000000000 +0000 |
| 6 | @@ -579,7 +579,7 @@ |
| 7 | |
| 8 | void ife_print_short(struct interface *ptr) |
| 9 | { |
| 10 | - printf("%-5.5s ", ptr->name); |
| 11 | + printf("%-9.8s ", ptr->name); |
| 12 | printf("%5d %3d", ptr->mtu, ptr->metric); |
| 13 | /* If needed, display the interface statistics. */ |
| 14 | if (ptr->statistics_valid) { |
| 15 | diff -Naur net-tools-1.60.orig/netstat.c net-tools-1.60/netstat.c |
| 16 | --- net-tools-1.60.orig/netstat.c 2003-09-12 22:43:54.000000000 +0000 |
| 17 | +++ net-tools-1.60/netstat.c 2003-09-12 22:50:35.000000000 +0000 |
| 18 | @@ -1449,7 +1449,7 @@ |
| 19 | } |
| 20 | if (flag_exp < 2) { |
| 21 | ife_short = 1; |
| 22 | - printf(_("Iface MTU Met RX-OK RX-ERR RX-DRP RX-OVR TX-OK TX-ERR TX-DRP TX-OVR Flg\n")); |
| 23 | + printf(_("Iface MTU Met RX-OK RX-ERR RX-DRP RX-OVR TX-OK TX-ERR TX-DRP TX-OVR Flg\n")); |
| 24 | } |
| 25 | |
| 26 | if (for_all_interfaces(do_if_print, &flag_all) < 0) { |