diff options
author | Phil Blundell <philb@gnu.org> | 1998-08-29 11:47:36 +0000 |
---|---|---|
committer | Phil Blundell <philb@gnu.org> | 1998-08-29 11:47:36 +0000 |
commit | 4b2cb283969eb299c212a677eb08b0cd05c0e80b (patch) | |
tree | f1add8f81116d27be1ec4e6ac0285a5d5bc239bb /ifconfig.c | |
parent | Replace outdated NLS support with GNU gettext (patch from (diff) | |
download | net-tools-4b2cb283969eb299c212a677eb08b0cd05c0e80b.tar.gz net-tools-4b2cb283969eb299c212a677eb08b0cd05c0e80b.tar.bz2 net-tools-4b2cb283969eb299c212a677eb08b0cd05c0e80b.zip |
Make i18n default to off (and fix typo in config.in)
Cosmetic changes to ifconfig. Fix lots of stuff to
compile properly with glibc2.1.
Fix HIPPI and HDLC/LAPB for new i18n code.
Diffstat (limited to 'ifconfig.c')
-rw-r--r-- | ifconfig.c | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -87,8 +87,12 @@ static const char *if_port_text[][4] = { #endif #if HAVE_AFIPX +#if (__GLIBC__ > 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) +#include <netipx/ipx.h> +#else #include "ipx.h" #endif +#endif #include "net-support.h" #include "pathnames.h" #include "version.h" @@ -97,7 +101,7 @@ static const char *if_port_text[][4] = { #include "sockets.h" char *Release = RELEASE, - *Version = "ifconfig 1.34 (1998-06-30)"; + *Version = "ifconfig 1.35 (1998-08-29)"; int opt_a = 0; /* show all interfaces */ int opt_i = 0; /* show the statistics */ @@ -258,12 +262,6 @@ ife_print(struct interface *ptr) if (ptr->flags & IFF_MULTICAST) printf(_("MULTICAST ")); printf(_(" MTU:%d Metric:%d\n"), ptr->mtu, ptr->metric?ptr->metric:1); - if (ptr->tx_queue_len != -1) - printf(_(" txqueuelen:%d\n"), ptr->tx_queue_len); -#if 0 - else - printf(_(" txqueuelen not available\n")); -#endif /* If needed, display the interface statistics. */ printf(" "); @@ -281,9 +279,11 @@ ife_print(struct interface *ptr) ptr->stats.tx_packets, ptr->stats.tx_errors, ptr->stats.tx_dropped, ptr->stats.tx_fifo_errors, ptr->stats.tx_carrier_errors); - printf(_(" Collisions:%lu "), ptr->stats.collisions); + printf(_(" collisions:%lu "), ptr->stats.collisions); if (can_compress) printf(_("compressed:%lu "), ptr->stats.tx_compressed); + if (ptr->tx_queue_len != -1) + printf(_("txqueuelen:%d "), ptr->tx_queue_len); printf("\n"); if ((ptr->map.irq || ptr->map.mem_start || ptr->map.dma || |