there is no such thing as -i option for ifconfig
authorBernd Eckenfels <net-tools@lina.inka.de>
Wed, 3 Jul 2002 23:40:47 +0000 (23:40 +0000)
committerBernd Eckenfels <net-tools@lina.inka.de>
Wed, 3 Jul 2002 23:40:47 +0000 (23:40 +0000)
removed variable, fixed usage, added options to english man page

ifconfig.c
man/en_US/ifconfig.8

index e496b26..718120e 100644 (file)
@@ -3,7 +3,7 @@
  *              that either displays or sets the characteristics of
  *              one or more of the system's networking interfaces.
  *
- * Version:     $Id: ifconfig.c,v 1.54 2001/11/01 03:00:13 ecki Exp $
+ * Version:     $Id: ifconfig.c,v 1.55 2002/07/03 23:40:47 ecki Exp $
  *
  * Author:      Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org>
  *              and others.  Copyright 1993 MicroWalt Corporation
@@ -88,7 +88,6 @@ struct in6_ifreq {
 char *Release = RELEASE, *Version = "ifconfig 1.42 (2001-04-13)";
 
 int opt_a = 0;                 /* show all interfaces          */
-int opt_i = 0;                 /* show the statistics          */
 int opt_v = 0;                 /* debugging output flag        */
 
 int addr_family = 0;           /* currently selected AF        */
@@ -200,7 +199,7 @@ static int test_flag(char *ifname, short flags)
 
 static void usage(void)
 {
-    fprintf(stderr, _("Usage:\n  ifconfig [-a] [-i] [-v] [-s] <interface> [[<AF>] <address>]\n"));
+    fprintf(stderr, _("Usage:\n  ifconfig [-a] [-v] [-s] <interface> [[<AF>] <address>]\n"));
 #if HAVE_AFINET
     fprintf(stderr, _("  [add <address>[/<prefixlen>]]\n"));
     fprintf(stderr, _("  [del <address>[/<prefixlen>]]\n"));
index 64647ac..b9eb0a7 100644 (file)
@@ -1,10 +1,10 @@
-.TH IFCONFIG 8 "11 Nov 2001" "net-tools" "Linux Programmer's Manual"
+.TH IFCONFIG 8 "2002-07-04" "net-tools" "Linux Programmer's Manual"
 .SH NAME
 ifconfig \- configure a network interface
 .SH SYNOPSIS
-.B "ifconfig [interface]"
+.B "ifconfig [-v] [-a] [-s] [interface]"
 .br
-.B "ifconfig interface [aftype] options | address ..."
+.B "ifconfig [-v] interface [aftype] options | address ..."
 .SH DESCRIPTION
 .B Ifconfig
 is used to configure the kernel-resident network interfaces.  It is
@@ -41,6 +41,15 @@ supported address families include
 (AMPR Packet radio).
 .SH OPTIONS
 .TP
+.B -a
+display all interfaces which are currently available, even if down
+.TP
+.B -s
+display a short list (like netstat -i)
+.TP
+.B -v
+be more verbose for some error conditions
+.TP
 .B interface
 The name of the interface.  This is usually a driver name followed by
 a unit number, for example