Date: Wed, 1 Oct 2003 22:05:35 +0200 From: Vincent Jardin <vjardin@wanadoo.fr> To: Brooks Davis <brooks@one-eyed-alien.net> Cc: arch@freebsd.org Subject: Re: adding if_dev member to struct ifnet Message-ID: <200310012205.35111.vjardin@wanadoo.fr> In-Reply-To: <20031001185458.GA29576@Odin.AC.HMC.Edu> References: <20030930174815.GC31908@Odin.AC.HMC.Edu> <200310012038.14062.vjardin@wanadoo.fr> <20031001185458.GA29576@Odin.AC.HMC.Edu>
next in thread | previous in thread | raw e-mail | index | archive | help
> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200310012205.35111.vjardin>