Subject: NetBSD master CVS tree commits
To: None <source-changes@netbsd.org>
From: The Source of All Evil <source@netbsd.org>
List: source-changes
Date: 08/05/1998 19:30:01
thorpej
Wed Aug  5 19:24:41 PDT 1998
Update of /cvsroot/src/sbin/ifconfig
In directory nb00:/tmp/cvs-serv21727

Modified Files:
	ifconfig.c 
Log Message:
Completely rewrite the way media descriptions are represented.  The same
data structure is used, but a much saner matching mechanism is used, one
which allows greater ease in adding new types.

Also, rewrite the way media words are displayed.  The status display now
looks like this:

bishop:thorpej 137$ ifconfig -m fxp0
fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        media: Ethernet autoselect (10baseT)
        status: active
        supported media:
                Ethernet autoselect
                Ethernet 100baseTX <full-duplex>
                Ethernet 100baseTX
                Ethernet 10baseT <full-duplex>
                Ethernet 10baseT
                Ethernet 100baseTX <loopback>
        inet 129.99.50.41 netmask 0xffffff00 broadcast 129.99.50.255
bishop:thorpej 138$ 

This makes it more clear which media type (e.g. Ethernet) is currently
in-use, handy for devices such as the TI ThunderLAN which can also have
both Ethernet and Token Ring PHYs attached.