Date: Fri, 18 May 2001 20:08:04 +0900 From: JINMEI Tatuya / =?ISO-2022-JP?B?GyRCP0BMQEMjOkgbKEI=?= <jinmei@isl.rdc.toshiba.co.jp> To: vishwanath pargaonkar <vishubp@yahoo.com> Cc: freebsd-net@FreeBSD.ORG, freebsd-hackers@FreeBSD.ORG Subject: Re: ifindex Message-ID: <y7vheyigbjf.wl@condor2.jinmei.org> In-Reply-To: <20010518050655.12153.qmail@web5301.mail.yahoo.com> References: <20010518050655.12153.qmail@web5301.mail.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
>>>>> On Fri, 18 May 2001 06:06:55 +0100 (BST), >>>>> vishwanath pargaonkar <vishubp@yahoo.com> said: > why is ifindex used for an interface.i know it is said > itz for unique identification of device.Can we not do > that using interfac name ? Yes, you could. But then - we should do string comparison to compare two interface indices (which is usually much heavier than comparing integers). - we should check all interface names in order to check the validity of a given interface index (i.e. name). and I believe we'll still see much more weird situations if we eliminate numeric interface indices. JINMEI, Tatuya Communication Platform Lab. Corporate R&D Center, Toshiba Corp. jinmei@isl.rdc.toshiba.co.jp To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?y7vheyigbjf.wl>