From owner-cvs-sbin Sat May 3 19:54:03 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id TAA03026 for cvs-sbin-outgoing; Sat, 3 May 1997 19:54:03 -0700 (PDT) Received: from spinner.DIALix.COM (spinner.dialix.com [192.203.228.67]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id TAA03012; Sat, 3 May 1997 19:53:47 -0700 (PDT) Received: from spinner.DIALix.COM (localhost.dialix.com.au [127.0.0.1]) by spinner.DIALix.COM with ESMTP id KAA00730; Sun, 4 May 1997 10:53:41 +0800 (WST) Message-Id: <199705040253.KAA00730@spinner.DIALix.COM> X-Mailer: exmh version 2.0gamma 1/27/96 To: Peter Wemm cc: CVS-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-sbin@FreeBSD.ORG Subject: Re: cvs commit: src/sbin/ifconfig ifconfig.c In-reply-to: Your message of "Sat, 03 May 1997 15:50:23 MST." <199705032250.PAA25719@freefall.freebsd.org> Date: Sun, 04 May 1997 10:53:41 +0800 From: Peter Wemm Sender: owner-cvs-sbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Peter Wemm wrote: > Modified: sbin/ifconfig ifconfig.c > Log: > My attempt at merging in NetBSD's IFMEDIA support turned out to be not > so simple.. Along the way I couldn't stand the odour of some of the > things I had previously done here and started cleaning up. It turned > out to be pretty major.. > > Among the cleanups and changes: > it now uses getopt, so things like ifconfig -a -u now work. It used to be > a strcmp against "-au" etc before. > ifconfig -l added. (prints a list of interface names, suitable for > /etc/rc usage) > new commands: media, mediaopt, -mediaopt (requires driver support) > new option: -m - shows all available media options the driver supports. > cleanup the sysctl() parsing loop somewhat. > options parsing works a bit better. > > ifconfig(8) update to follow > > Obtained from: Mostly from NetBSD, but hacked around a lot to get it > to fit in our ifconfig. > > Revision Changes Path > 1.25 +563 -57 src/sbin/ifconfig/ifconfig.c Sigh. I've just deleted the commit from the repository because I didn't notice that the NetBSD ifconfig.c file gained an extra copyright over the entire file by the person who included the ifmedia support (and they complained) Double sigh, now I'm going to have to start again from scratch.. :-( -Peter