From owner-freebsd-net@FreeBSD.ORG Tue Apr 20 23:26:06 2004 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2958E16A4CE; Tue, 20 Apr 2004 23:26:06 -0700 (PDT) Received: from rms04.rommon.net (rms04.rommon.net [212.54.2.140]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0059943D31; Tue, 20 Apr 2004 23:26:04 -0700 (PDT) (envelope-from pete@he.iki.fi) Received: from he.iki.fi (h91.vuokselantie10.fi [193.64.42.145]) by rms04.rommon.net (8.12.10/8.12.9) with ESMTP id i3L6Q4mo073138; Wed, 21 Apr 2004 09:26:05 +0300 (EEST) (envelope-from pete@he.iki.fi) Message-ID: <408613F7.1090806@he.iki.fi> Date: Wed, 21 Apr 2004 09:25:59 +0300 From: Petri Helenius User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040113 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Luigi Rizzo References: <20040419110912.A71274@xorpc.icir.org> In-Reply-To: <20040419110912.A71274@xorpc.icir.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: net@freebsd.org Subject: Re: what is the story on if_index allocation ? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Apr 2004 06:26:06 -0000 Luigi Rizzo wrote: >Can someone explain what is the goal ? Reuse a number if an >interface has the same name of a previously existing one and >the index is free ? And does it make sense, anyways, or >we could just simplify that code and just reuse the first >available entry in ifindex_table[] ? > > The optimal course of action (from management software point of view) is to retain as static ifName to ifIndex mapping. If the index changes for the same interface, you're supposed to have lower sysUpTime than on previous query. Pete