diff options
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/ifconfig/ifconfig.8 | 12 | ||||
-rw-r--r-- | sbin/ifconfig/ifconfig.c | 10 |
2 files changed, 17 insertions, 5 deletions
diff --git a/sbin/ifconfig/ifconfig.8 b/sbin/ifconfig/ifconfig.8 index fdce8f4..6f67af9 100644 --- a/sbin/ifconfig/ifconfig.8 +++ b/sbin/ifconfig/ifconfig.8 @@ -40,7 +40,9 @@ .Nd configure network interface parameters .Sh SYNOPSIS .Nm ifconfig -.Ar interface address_family +.Op Fl L +.Ar interface +.Op Ar address_family .Oo .Ar address .Op Ar dest_address @@ -48,6 +50,7 @@ .Op Ar parameters .Nm ifconfig .Fl a +.Op Fl L .Op Fl d .Op Fl u .Op Ar address_family @@ -56,6 +59,10 @@ .Op Fl d .Op Fl u .Op Ar address_family +.Nm ifconfig +.Op Fl L +.Op Fl d +.Op Fl u .Sh DESCRIPTION .Nm Ifconfig is used to assign an address @@ -407,6 +414,9 @@ The flag limits this to interfaces that are down, and .Fl u limits this to interfaces that are up. +When no arguments are given, +.Fl a +is implied. .Pp The .Fl l diff --git a/sbin/ifconfig/ifconfig.c b/sbin/ifconfig/ifconfig.c index cfc4722..fa1d9e9 100644 --- a/sbin/ifconfig/ifconfig.c +++ b/sbin/ifconfig/ifconfig.c @@ -312,17 +312,19 @@ void usage() { #ifndef INET6 - fprintf(stderr, "%s\n%s\n%s\n%s\n", + fprintf(stderr, "%s\n%s\n%s\n%s\n%s\n", "usage: ifconfig interface address_family [address [dest_address]]", " [parameters]", " ifconfig -a [-d] [-u] [address_family]", - " ifconfig -l [-d] [-u] [address_family]"); + " ifconfig -l [-d] [-u] [address_family]", + " ifconfig [-d] [-u]"); #else - fprintf(stderr, "%s\n%s\n%s\n%s\n", + fprintf(stderr, "%s\n%s\n%s\n%s\n%s\n", "usage: ifconfig [-L] interface address_family [address [dest_address]]", " [parameters]", " ifconfig -a [-L] [-d] [-u] [address_family]", - " ifconfig -l [-d] [-u] [address_family]"); + " ifconfig -l [-d] [-u] [address_family]", + " ifconfig [-L] [-d] [-u]"); #endif exit(1); } |