* 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
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 */
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"));
-.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
(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