aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Blundell <philb@gnu.org>1998-08-29 11:47:36 +0000
committerPhil Blundell <philb@gnu.org>1998-08-29 11:47:36 +0000
commit4b2cb283969eb299c212a677eb08b0cd05c0e80b (patch)
treef1add8f81116d27be1ec4e6ac0285a5d5bc239bb /ifconfig.c
parentReplace outdated NLS support with GNU gettext (patch from (diff)
downloadnet-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.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/ifconfig.c b/ifconfig.c
index 3c48a3a..76a67c6 100644
--- a/ifconfig.c
+++ b/ifconfig.c
@@ -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 ||