Date: Wed, 4 Jul 2001 14:03:10 -0700 From: Brooks Davis <brooks@one-eyed-alien.net> To: stable@freebsd.org Subject: HEADS UP: slight change in ifconfig output Message-ID: <20010704140310.A3737@Odin.AC.HMC.Edu>
next in thread | raw e-mail | index | archive | help
--3MwIy2ne0vdjdPXF Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In the commit below I changed our ifconfig output to more closely match that of NetBSD and OpenBSD with regard to media support. The main change is that the list of supported media is no longer shown in the status unless you add the -m option. This is because you rarely care what's on that list. Also, media: line how shows the type of the interface (Ethernet, FDDI, etc.). Finally, when printed, the supported media list now has one entry per line rather then the old mess where you couldn't tell where one entry began and the next ended. It seems fairly unlikely this will break anything and it's been in -current for a month now without any complaints, but it changes the default output of a significant command so I figured a HEADS UP message was in order. Examples of the old and new output are below: old: # ifconfig fxp0 fxp0: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 inet6 fe80::2d0:b73f:f425:37be%fxp0 prefixlen 64 scopeid 0x1 inet 192.168.0.1 netmask 0xfffffff0 broadcast 64.81.187.63 ether 00:d0:b7:25:37:be media: autoselect (100baseTX <full-duplex>) status: active supported media: autoselect 100baseTX <full-duplex> 100baseTX 10baseT/UTP = <full-duplex> 10baseT/UTP 100baseTX <hw-loopback> new: # ifconfig fxp0 fxp0: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 inet 130.221.203.239 netmask 0xfffff800 broadcast 130.221.207.255 inet6 fe80::202:a5ff:fe53:3f9b%fxp0 prefixlen 64 scopeid 0x1 ether 00:02:a5:53:3f:9b media: Ethernet autoselect (10baseT/UTP) status: active # ifconfig -m fxp0 ifconfig -m fxp0 fxp0: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 inet 130.221.203.239 netmask 0xfffff800 broadcast 130.221.207.255 inet6 fe80::202:a5ff:fe53:3f9b%fxp0 prefixlen 64 scopeid 0x1 ether 00:02:a5:53:3f:9b media: Ethernet autoselect (10baseT/UTP) status: active supported media: media autoselect media 100baseTX mediaopt full-duplex media 100baseTX media 10baseT/UTP mediaopt full-duplex media 10baseT/UTP media 100baseTX mediaopt hw-loopback -- Brooks --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 ----- Forwarded message from Brooks Davis <brooks@FreeBSD.org> ----- From: Brooks Davis <brooks@FreeBSD.org> Date: Wed, 4 Jul 2001 13:49:21 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sbin/ifconfig ifconfig.8 ifconfig.c ifconfig.h ifmedia.c brooks 2001/07/04 13:49:21 PDT Modified files: (Branch: RELENG_4) sbin/ifconfig ifconfig.8 ifconfig.c ifconfig.h=20 ifmedia.c=20 Log: MFC: -m to show supported media types, better formatting of current and supported media type output. =20 PR: 27701 Obtained from: NetBSD =20 Revision Changes Path 1.27.2.11 +8 -1 src/sbin/ifconfig/ifconfig.8 1.51.2.9 +9 -7 src/sbin/ifconfig/ifconfig.c 1.5.2.2 +2 -1 src/sbin/ifconfig/ifconfig.h 1.6.2.2 +121 -23 src/sbin/ifconfig/ifmedia.c ----- End forwarded message ----- --3MwIy2ne0vdjdPXF Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.4 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE7Q4SNXY6L6fI4GtQRAr9gAJ9filmvsrWB3gDNSyfI3UcK3tJi8QCfUtdr 8rKJ7V4MS3+XwU89jjJRHjI= =g706 -----END PGP SIGNATURE----- --3MwIy2ne0vdjdPXF-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010704140310.A3737>