Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Mar 2001 16:35:30 -0800
From:      Brooks Davis <brooks@one-eyed-alien.net>
To:        David Wolfskill <david@catwhisker.org>
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>
In-Reply-To: <200103302351.f2UNpRo26499@bunrab.catwhisker.org>; from david@catwhisker.org on Fri, Mar 30, 2001 at 03:51:27PM -0800
References:  <22391.985986428@critter> <200103302351.f2UNpRo26499@bunrab.catwhisker.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--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<adhoc>)?)+$/
>
> Nevertheless, I believe it would be a little easier to parse (both for
> people & simple scripts) if the separator before "<adhoc>" 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-audit" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010330163530.A23549>