summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjmc <jmc@openbsd.org>2004-12-07 10:26:49 +0000
committerjmc <jmc@openbsd.org>2004-12-07 10:26:49 +0000
commit7013dcd80e56587516d27483ad7cf39c407a455d (patch)
tree9b79eefea96d08b92f640258f31976a28e6d2ed7
parenttweaks; (diff)
downloadwireguard-openbsd-7013dcd80e56587516d27483ad7cf39c407a455d.tar.xz
wireguard-openbsd-7013dcd80e56587516d27483ad7cf39c407a455d.zip
note that -a is the default if no params given;
`interface' is now optional;
-rw-r--r--sbin/ifconfig/ifconfig.86
-rw-r--r--sbin/ifconfig/ifconfig.c6
2 files changed, 7 insertions, 5 deletions
diff --git a/sbin/ifconfig/ifconfig.8 b/sbin/ifconfig/ifconfig.8
index 598b2cdf60d..ba7114013d4 100644
--- a/sbin/ifconfig/ifconfig.8
+++ b/sbin/ifconfig/ifconfig.8
@@ -1,4 +1,4 @@
-.\" $OpenBSD: ifconfig.8,v 1.94 2004/12/07 00:10:05 deraadt Exp $
+.\" $OpenBSD: ifconfig.8,v 1.95 2004/12/07 10:26:49 jmc Exp $
.\" $NetBSD: ifconfig.8,v 1.11 1996/01/04 21:27:29 pk Exp $
.\" $FreeBSD: ifconfig.8,v 1.16 1998/02/01 07:03:29 steve Exp $
.\"
@@ -39,7 +39,7 @@
.Nd configure network interface parameters
.Sh SYNOPSIS
.Nm ifconfig
-.Ar interface
+.Op Ar interface
.Op Ar address_family
.Oo
.Ar address
@@ -142,6 +142,8 @@ Causes
.Nm
to print information on all interfaces.
The protocol family may be specified as well.
+This is the default, if no parameters are given to
+.Nm .
.It Fl am
The same as the
.Fl a
diff --git a/sbin/ifconfig/ifconfig.c b/sbin/ifconfig/ifconfig.c
index 776efd51acb..f3c96d7650e 100644
--- a/sbin/ifconfig/ifconfig.c
+++ b/sbin/ifconfig/ifconfig.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ifconfig.c,v 1.122 2004/12/07 00:10:05 deraadt Exp $ */
+/* $OpenBSD: ifconfig.c,v 1.123 2004/12/07 10:26:49 jmc Exp $ */
/* $NetBSD: ifconfig.c,v 1.40 1997/10/01 02:19:43 enami Exp $ */
/*
@@ -77,7 +77,7 @@ static const char copyright[] =
#if 0
static const char sccsid[] = "@(#)ifconfig.c 8.2 (Berkeley) 2/16/94";
#else
-static const char rcsid[] = "$OpenBSD: ifconfig.c,v 1.122 2004/12/07 00:10:05 deraadt Exp $";
+static const char rcsid[] = "$OpenBSD: ifconfig.c,v 1.123 2004/12/07 10:26:49 jmc Exp $";
#endif
#endif /* not lint */
@@ -2703,7 +2703,7 @@ void
usage(int value)
{
fprintf(stderr,
- "usage: ifconfig interface [address_family] [address [dest_address]]\n"
+ "usage: ifconfig [interface] [address_family] [address [dest_address]]\n"
"\t[[-]alias] [[-]arp] [broadcast addr]\n"
"\t[[-]debug] [delete] [up] [down] [ipdst addr]\n"
"\t[tunnel src_address dest_address] [deletetunnel]\n"