From owner-cvs-sbin Sat May 3 23:16:44 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id XAA11572 for cvs-sbin-outgoing; Sat, 3 May 1997 23:16:44 -0700 (PDT) Received: from freefall.freebsd.org (freefall.cdrom.com [204.216.27.21]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id XAA11508; Sat, 3 May 1997 23:15:12 -0700 (PDT) From: Peter Wemm Received: (from peter@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id XAA28338; Sat, 3 May 1997 23:14:48 -0700 (PDT) Date: Sat, 3 May 1997 23:14:48 -0700 (PDT) Message-Id: <199705040614.XAA28338@freefall.freebsd.org> To: CVS-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-sbin@FreeBSD.ORG Subject: cvs commit: src/sbin/ifconfig ifconfig.c Sender: owner-cvs-sbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk peter 97/05/03 23:14:47 Modified: sbin/ifconfig ifconfig.c Log: Second try at cleanups and fixes (without if_media stuff for the moment) - parse command options using getopt for consistancy - sanitise the command parsing so that it's less like spaghetti - implement a "-l" option (idea from NetBSD - just list names) - attempt to clean up the sysctl parsing loop some more. It still needs to be taken out the back and shot though. - cut down on global usage, but there's a lot more scope for this. - make usage string a bit closer to reality (it was missing lots of things) Unfortunately, I did this for the second time but with the memory of the NetBSD version still recently in my mind. It's hard to redo simple changes or getopt stuff without making it look like what you've been working with a few hours ago. Revision Changes Path 1.26 +172 -104 src/sbin/ifconfig/ifconfig.c