From owner-freebsd-arch@FreeBSD.ORG Thu Feb 21 15:24:15 2008 Return-Path: Delivered-To: arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3CA0B16A402; Thu, 21 Feb 2008 15:24:15 +0000 (UTC) (envelope-from brooks@lor.one-eyed-alien.net) Received: from lor.one-eyed-alien.net (cl-162.ewr-01.us.sixxs.net [IPv6:2001:4830:1200:a1::2]) by mx1.freebsd.org (Postfix) with ESMTP id 9E30913C468; Thu, 21 Feb 2008 15:24:14 +0000 (UTC) (envelope-from brooks@lor.one-eyed-alien.net) Received: from lor.one-eyed-alien.net (localhost [127.0.0.1]) by lor.one-eyed-alien.net (8.14.1/8.13.8) with ESMTP id m1LFO9Y1012231; Thu, 21 Feb 2008 09:24:09 -0600 (CST) (envelope-from brooks@lor.one-eyed-alien.net) Received: (from brooks@localhost) by lor.one-eyed-alien.net (8.14.1/8.13.8/Submit) id m1LFO9EH012230; Thu, 21 Feb 2008 09:24:09 -0600 (CST) (envelope-from brooks) Date: Thu, 21 Feb 2008 09:24:08 -0600 From: Brooks Davis To: Robert Watson Message-ID: <20080221152408.GA12023@lor.one-eyed-alien.net> References: <86odacc04t.fsf@ds4.des.no> <20080219233217.GS27248@funkthat.com> <20080220111157.H44565@fledge.watson.org> <86ablvuzgx.fsf@ds4.des.no> <20080221100156.V52922@fledge.watson.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="YiEDa0DAkWCtVeE4" Content-Disposition: inline In-Reply-To: <20080221100156.V52922@fledge.watson.org> User-Agent: Mutt/1.5.16 (2007-06-09) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (lor.one-eyed-alien.net [127.0.0.1]); Thu, 21 Feb 2008 09:24:10 -0600 (CST) Cc: Dag-Erling Sm??rgrav , John-Mark Gurney , arch@freebsd.org Subject: Re: dev.* analogue for interfaces X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Feb 2008 15:24:15 -0000 --YiEDa0DAkWCtVeE4 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Feb 21, 2008 at 10:07:08AM +0000, Robert Watson wrote: > On Wed, 20 Feb 2008, Dag-Erling Sm?rgrav wrote: >=20 >> Robert Watson writes: >>=20 >>> We also support interface renaming... Does newbus mind if you rename t= he=20 >>> devices in its tree? >>=20 >> I'm not sure whether you're replying to my proposal or to Julian's=20 >> interpretation / extrapolation of it... but I have no intention of=20 >> hooking interfaces into newbus. I just want a sysctl tree for struct=20 >> ifnet like we have a sysctl tree for device_t, to access interface=20 >> parameters which are not easily accessible through ifconfig. >=20 > Hmm. When I look at net/if.c, I don't see renaming support, so perhaps= =20 > this was just a proposal I was thinking of and not actual code. In eithe= r=20 > case, I think the question stands: in a world where interface renaming is= =20 > supported, is your plan to also rename the if.X sysctl tree created for t= he=20 > interface? Does sysctl have a facility to do this? I think that one way or another it should be possible to reach the sysctl by if_index since that is the only stable way to access an interface though out its life. I might actually suggest making that the only way and have if.1.name be available. -- Brooks --YiEDa0DAkWCtVeE4 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) iD8DBQFHvZeYXY6L6fI4GtQRAq+SAKDWoU2VUwWkotuw0L46r8MGqzarVQCeJb+6 eOUZsjvip/UzKDo0m+7EEQI= =T+v0 -----END PGP SIGNATURE----- --YiEDa0DAkWCtVeE4--