Date: Sat, 3 May 1997 15:50:23 -0700 (PDT) From: Peter Wemm <peter@FreeBSD.ORG> To: CVS-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-sbin@FreeBSD.ORG Subject: cvs commit: src/sbin/ifconfig ifconfig.c Message-ID: <199705032250.PAA25719@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
peter 97/05/03 15:50:23 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199705032250.PAA25719>