From owner-freebsd-arch@FreeBSD.ORG Wed Oct 1 13:05:40 2003 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AA6C616A4B3 for ; Wed, 1 Oct 2003 13:05:40 -0700 (PDT) Received: from mwinf0104.wanadoo.fr (smtp8.wanadoo.fr [193.252.22.30]) by mx1.FreeBSD.org (Postfix) with ESMTP id 90FC543FF9 for ; Wed, 1 Oct 2003 13:05:37 -0700 (PDT) (envelope-from vjardin@wanadoo.fr) Received: from mercure.vincentjardin.net (AVelizy-102-1-4-9.w80-11.abo.wanadoo.fr [80.11.204.9]) by mwinf0104.wanadoo.fr (SMTP Server) with ESMTP id F287F1BEEAB3; Wed, 1 Oct 2003 22:05:35 +0200 (CEST) Content-Type: text/plain; charset="iso-8859-1" From: Vincent Jardin To: Brooks Davis Date: Wed, 1 Oct 2003 22:05:35 +0200 User-Agent: KMail/1.4.3 References: <20030930174815.GC31908@Odin.AC.HMC.Edu> <200310012038.14062.vjardin@wanadoo.fr> <20031001185458.GA29576@Odin.AC.HMC.Edu> In-Reply-To: <20031001185458.GA29576@Odin.AC.HMC.Edu> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200310012205.35111.vjardin@wanadoo.fr> cc: arch@freebsd.org Subject: Re: adding if_dev member to struct ifnet X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Oct 2003 20:05:40 -0000 > I've done something like this in my perforce branch > (//depot/user/brooks/xname/...), but it isn't a real solution because > I plan to follow up by breaking the assumption that if_xname remains > constant for the life of the interface. If either if_dev or > if_d{name,unit} are added, you could use those as you do now. > You might consider using if_index instead since that's both unchanged > over the life of the device and quick to check. In this case, I agree that using if_index would be a better choice ;-) Regards, Vincent