Make "ifconfig" with no arguments equivalent to "ifconfig -a".
This commit is contained in:
parent
2ba03123c5
commit
d80e7aa796
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=63473
@ -390,6 +390,10 @@ main(argc, argv)
|
|||||||
if (uponly && downonly)
|
if (uponly && downonly)
|
||||||
usage();
|
usage();
|
||||||
|
|
||||||
|
/* no arguments is equivalent to '-a' */
|
||||||
|
if (!namesonly && argc < 1)
|
||||||
|
all = 1;
|
||||||
|
|
||||||
/* -a and -l allow an address family arg to limit the output */
|
/* -a and -l allow an address family arg to limit the output */
|
||||||
if (all || namesonly) {
|
if (all || namesonly) {
|
||||||
if (argc > 1)
|
if (argc > 1)
|
||||||
|
Loading…
Reference in New Issue
Block a user