From owner-freebsd-net@FreeBSD.ORG Tue Sep 30 10:52:49 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 53D7516A4B3; Tue, 30 Sep 2003 10:52:49 -0700 (PDT) Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7D2C943FB1; Tue, 30 Sep 2003 10:52:48 -0700 (PDT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (IDENT:smmsp@localhost.localdomain [127.0.0.1]) by odin.ac.hmc.edu (8.12.9/8.12.3) with ESMTP id h8UHpLDV025768; Tue, 30 Sep 2003 10:52:32 -0700 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.12.9/8.12.3/Submit) id h8UHUYfq018048; Tue, 30 Sep 2003 10:30:34 -0700 Date: Tue, 30 Sep 2003 10:30:33 -0700 From: Brooks Davis To: John Baldwin Message-ID: <20030930173033.GB31908@Odin.AC.HMC.Edu> References: <20031001011119.U1245@gamplex.bde.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Fba/0zbH8Xs+Fj9o" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.4i X-Virus-Scanned: by amavisd-milter (http://amavis.org/) on odin.ac.hmc.edu cc: arch@FreeBSD.org cc: net@FreeBSD.org Subject: Re: finishing the if.h/if_var.h split X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Sep 2003 17:52:49 -0000 --Fba/0zbH8Xs+Fj9o Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Sep 30, 2003 at 01:14:34PM -0400, John Baldwin wrote: >=20 > On 30-Sep-2003 Bruce Evans wrote: > > On Tue, 30 Sep 2003, John Baldwin wrote: > >=20 > >> On 30-Sep-2003 Bruce Evans wrote: > >> > On Mon, 29 Sep 2003, Brooks Davis wrote: > >> >> Unfortunately, "soon" hasn't happened yet and it is now tripping me > >> >> up. To add the if_dev member to struct ifnet (see the forthcoming > >> >> post on that subject), it is necessary for sys/bus.h to be included= in > >> >> net/if_var.h > >> > > >> > That would be namespace pollution, so it is not permitted :-). Requ= iring > >> > all files that include (and especially to > >> > include would be interface breakage so it is even less > >> > permitted. > >> > >> Well, if if.h stops including if_var.h, then only kernel files that > >> include net/if_var.h would need sys/bus.h. I think that's manageable. > >=20 > > All userland files that include net/if_var.h would also need it (except > > they would only need device_t). >=20 > Is struct ifnet exposed to userland? Ugh, why do we export such things? > I guess because ifconfig grovels around in the kernel due to a lack of > APIs between the kernel and userland. *sigh* ifconfig is actually OK, it uses sysctl. netstat and ifmcstat do go grovling around in there as do 4-5 ports. If someone fixed our userland that would provide the template to fix the ports since they are all just netstat in some form or another. -- 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 --Fba/0zbH8Xs+Fj9o Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQE/eb20XY6L6fI4GtQRApTwAJ0ZGFspAr0NJYMOOCghsYurtntxlACeKILY 4kch6VFEGstPNOfkb/ZFr38= =jHza -----END PGP SIGNATURE----- --Fba/0zbH8Xs+Fj9o--