Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Apr 2004 09:25:59 +0300
From:      Petri Helenius <pete@he.iki.fi>
To:        Luigi Rizzo <rizzo@icir.org>
Cc:        net@freebsd.org
Subject:   Re: what is the story on if_index allocation ?
Message-ID:  <408613F7.1090806@he.iki.fi>
In-Reply-To: <20040419110912.A71274@xorpc.icir.org>
References:  <20040419110912.A71274@xorpc.icir.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?408613F7.1090806>