Date: Thu, 11 Mar 1999 16:32:34 -0600 (CST) From: Anthony Kimball - High Performance Computing <alk@pobox.com> To: FreeBSD-gnats-submit@freebsd.org Subject: bin/10548: ifconfig Message-ID: <199903112232.QAA22768@poboxer.pobox.com>
next in thread | raw e-mail | index | archive | help
>Number: 10548 >Category: bin >Synopsis: More useful default ifconfig behaviour sans args >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Mar 11 14:40:00 PST 1999 >Closed-Date: >Last-Modified: >Originator: Anthony Kimball - High Performance Computing >Release: FreeBSD 4.0-CURRENT i386 >Organization: Dis >Environment: >Description: It would be nice if ifconfig could default to useful behaviour absent any arguments. I suggest -a: >How-To-Repeat: >Fix: diff -c -3 -r1.38 ifconfig.c *** ifconfig.c 1998/08/07 06:36:53 1.38 --- ifconfig.c 1999/03/11 22:29:09 *************** *** 279,285 **** int mib[6]; /* Parse leading line options */ ! all = downonly = uponly = namesonly = 0; while ((c = getopt(argc, argv, "adlmu")) != -1) { switch (c) { case 'a': /* scan all interfaces */ --- 279,286 ---- int mib[6]; /* Parse leading line options */ ! all = argc == 1; ! downonly = uponly = namesonly = 0; while ((c = getopt(argc, argv, "adlmu")) != -1) { switch (c) { case 'a': /* scan all interfaces */ >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199903112232.QAA22768>