From owner-freebsd-bugs Thu Mar 11 14:40:15 1999 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id D43671526A for ; Thu, 11 Mar 1999 14:40:13 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.2/8.9.2) id OAA43216; Thu, 11 Mar 1999 14:40:00 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from poboxer.pobox.com (unknown [208.149.16.4]) by hub.freebsd.org (Postfix) with ESMTP id A1B5215271 for ; Thu, 11 Mar 1999 14:33:30 -0800 (PST) (envelope-from alk@poboxer.pobox.com) Received: (from alk@localhost) by poboxer.pobox.com (8.9.3/8.9.1) id QAA22768; Thu, 11 Mar 1999 16:32:34 -0600 (CST) (envelope-from alk) Message-Id: <199903112232.QAA22768@poboxer.pobox.com> Date: Thu, 11 Mar 1999 16:32:34 -0600 (CST) From: Anthony Kimball - High Performance Computing Reply-To: alk@pobox.com To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: bin/10548: ifconfig Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >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