From owner-freebsd-hackers Fri May 18 4: 9:38 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from shuttle.wide.toshiba.co.jp (shuttle.wide.toshiba.co.jp [202.249.10.124]) by hub.freebsd.org (Postfix) with ESMTP id 3958E37B423; Fri, 18 May 2001 04:09:32 -0700 (PDT) (envelope-from jinmei@isl.rdc.toshiba.co.jp) Received: from localhost ([3ffe:501:100f:10c1:ecfb:82e4:452:ae9]) by shuttle.wide.toshiba.co.jp (8.9.1+3.1W/8.9.1) with ESMTP id UAA18650; Fri, 18 May 2001 20:08:52 +0900 (JST) Date: Fri, 18 May 2001 20:08:04 +0900 Message-ID: From: JINMEI Tatuya / =?ISO-2022-JP?B?GyRCP0BMQEMjOkgbKEI=?= To: vishwanath pargaonkar Cc: freebsd-net@FreeBSD.ORG, freebsd-hackers@FreeBSD.ORG Subject: Re: ifindex In-Reply-To: <20010518050655.12153.qmail@web5301.mail.yahoo.com> References: <20010518050655.12153.qmail@web5301.mail.yahoo.com> User-Agent: Wanderlust/2.5.8 (Smooth) Emacs/21.0 Mule/5.0 (SAKAKI) Organization: Research & Development Center, Toshiba Corp., Kawasaki, Japan. MIME-Version: 1.0 (generated by SEMI 1.13.7 - "Awazu") Content-Type: text/plain; charset=US-ASCII X-Dispatcher: imput version 980905(IM100) Lines: 21 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: X-Loop: FreeBSD.ORG >>>>> On Fri, 18 May 2001 06:06:55 +0100 (BST), >>>>> vishwanath pargaonkar 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