From alk@poboxer.pobox.com Thu Mar 11 14:33:39 1999
Return-Path: <alk@poboxer.pobox.com>
Received: from poboxer.pobox.com (unknown [208.149.16.4])
	by hub.freebsd.org (Postfix) with ESMTP id A1B5215271
	for <FreeBSD-gnats-submit@freebsd.org>; 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 <alk@pobox.com>
Sender: alk@poboxer.pobox.com
Reply-To: alk@pobox.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: ifconfig
X-Send-Pr-Version: 3.2

>Number:         10548
>Category:       bin
>Synopsis:       More useful default ifconfig behaviour sans args
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Mar 11 14:40:00 PST 1999
>Closed-Date:    Tue Jul 18 18:36:10 PDT 2000
>Last-Modified:  Tue Jul 18 18:36:46 PDT 2000
>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:
State-Changed-From-To: open->closed 
State-Changed-By: archie 
State-Changed-When: Tue Jul 18 18:36:10 PDT 2000 
State-Changed-Why:  
Default behavior is now "ifconfig -a" in 5.0-current and 4.1-stable. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=10548 
>Unformatted:
