Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Oct 2002 20:50:38 -0700
From:      Brooks Davis <brooks@one-eyed-alien.net>
To:        net@freebsd.org
Subject:   [PATCH] switching to if_xname
Message-ID:  <20021023205038.B30597@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

As previously discussed, I've created a patch to replace if_unit and
if_name with if_xname in struct ifnet following the example of NetBSD
and OpenBSD.  I've tried to place the more intresting parts of the diff
near the top.

This patch will break ports which use libkvm to read interface
statistics.  This effects at least wmnet and wmnet2 (though both
segfault on current without this patch).  The patches to fix this should
be trivial since most of those applications probably support NetBSD or
OpenBSD and I plan to bump __FreeBSD_version.  Other then those issues
and a generalization of interface globing in IPFW, this patch should be
a giant no-op from the user perspective.  Real features will come later,
but the API/ABI change needs to happen soon or it's going to be a 6.0
feature.

I'm running this patch on my laptop with a GENERIC kernel without any
problems so far.  For all it's size, most of the changes are log() or
printf() calls plus a fairly consistant change to each network driver's
attach function so this should be generally low impact.

The patch is available at the URL below.  I tried to send a copy to the
list, but it looks like it got silently tossed as too large.  If you
want a copy e-mailed to you, feel free to ask me for one.

http://people.freebsd.org/~brooks/patches/if_xname.diff

Please review.

Thanks,
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

--3MwIy2ne0vdjdPXF
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9t24MXY6L6fI4GtQRApV1AKCNFZ4B0PohaEtX+elB8Utz5BmCdACeLJ97
sPJct49DaK3emB86XZaEwNk=
=Puo5
-----END PGP SIGNATURE-----

--3MwIy2ne0vdjdPXF--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-net" in the body of the message




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