From owner-freebsd-current Fri Mar 30 16:35:38 2001 Delivered-To: freebsd-current@freebsd.org Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by hub.freebsd.org (Postfix) with ESMTP id A753437B718; Fri, 30 Mar 2001 16:35:31 -0800 (PST) (envelope-from brdavis@odin.ac.hmc.edu) Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.11.0/8.11.0) id f2V0ZUk25585; Fri, 30 Mar 2001 16:35:30 -0800 Date: Fri, 30 Mar 2001 16:35:30 -0800 From: Brooks Davis To: David Wolfskill Cc: audit@FreeBSD.ORG, current@FreeBSD.ORG, phk@FreeBSD.ORG Subject: Re: Call for review... PR 25577 Message-ID: <20010330163530.A23549@Odin.AC.HMC.Edu> References: <22391.985986428@critter> <200103302351.f2UNpRo26499@bunrab.catwhisker.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="Nq2Wo0NMKNjxTN9z" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200103302351.f2UNpRo26499@bunrab.catwhisker.org>; from david@catwhisker.org on Fri, Mar 30, 2001 at 03:51:27PM -0800 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG --Nq2Wo0NMKNjxTN9z Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Mar 30, 2001 at 03:51:27PM -0800, David Wolfskill wrote: > One concern, and this may well affect other NIC flavors, is the list of > media types is a little annoying to parse. Hmmm... speaking Perl, I > suppose it could be characterized as >=20 > /^\s+supported media:(\s[\S+(\s)?)+$/ > > Nevertheless, I believe it would be a little easier to parse (both for > people & simple scripts) if the separator before "" were > different from the one between adjacent supported media. > > Or am I just being rather denser than usual? No, you're entirely correct. However, this isn't my fault. ;-) The problem here is that our ifconfig's if_media support is really crappy. My proposed solution is to take the -m option from {Net,Open}BSD. Without the -m flag they don't display the supported media list. With it, they display it in a much cleaner manner with one possability per line. It's on my todo list though anyone else could deal with it as well. I figured this patch was big enough without adding a bunch of cleanups to it. As it stands, there is a cleanup of a bug that ment you could never see some mediaopt's in the supported list. Instead you'd see the same media type twice with not differences. Apparently no one actually uses mediaopts other then full-duplex. ;-) -- 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 --Nq2Wo0NMKNjxTN9z 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 iD8DBQE6xSZRXY6L6fI4GtQRAhypAKDGafbjih2bR3i60euj6nU0qx5ciQCfVDoo P/nJPpxBMAUQKXbOuVBZHPM= =oSRH -----END PGP SIGNATURE----- --Nq2Wo0NMKNjxTN9z-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message