Date: Wed, 20 May 1998 20:03:38 +0900 From: Kenjiro Cho <kjc@csl.sony.co.jp> To: Julian Elischer <julian@whistle.com> Cc: Luigi Rizzo <luigi@labinfo.iet.unipi.it>, current@FreeBSD.ORG Subject: Re: struct ifnet handling... Message-ID: <199805201103.UAA05126@hotaka.csl.sony.co.jp> In-Reply-To: Your message of "Tue, 19 May 1998 11:43:14 MST." <Pine.BSF.3.95.980519114201.20170G-100000@current1.whistle.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Julian said: >> if_index is evil and hsould be not used within the kernelinterfaces should >> become fully dynamic eventually. >> possibly a hash-table might be used to map between externally supplied >> if_index numbers and teh real pointers. Why is if_index evil? AFAIK, it isn't used as "index" in the kernel and can be used as a unique identifier from both kernel and user space. When a classifier checks the rules, it already has a pointer to the struct ifnet so that comparing if_index is cheap. --Kenjiro To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199805201103.UAA05126>