From owner-freebsd-current Tue May 19 11:53:23 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA17846 for freebsd-current-outgoing; Tue, 19 May 1998 11:53:23 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from alpo.whistle.com (alpo.whistle.com [207.76.204.38]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA17732 for ; Tue, 19 May 1998 11:52:32 -0700 (PDT) (envelope-from julian@whistle.com) Received: (from daemon@localhost) by alpo.whistle.com (8.8.5/8.8.5) id LAA21054; Tue, 19 May 1998 11:43:28 -0700 (PDT) Received: from current1.whistle.com(207.76.205.22) via SMTP by alpo.whistle.com, id smtpd021047; Tue May 19 18:43:20 1998 Date: Tue, 19 May 1998 11:43:14 -0700 (PDT) From: Julian Elischer To: Kenjiro Cho cc: Luigi Rizzo , current@FreeBSD.ORG Subject: Re: struct ifnet handling... In-Reply-To: <199805191038.TAA25933@hotaka.csl.sony.co.jp> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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. On Tue, 19 May 1998, Kenjiro Cho wrote: > > >> When this is done, matching interface names requires only a pointer > >> comparison (and furthermore, a NULL pointer can be used as an > >> indication that no interface match is required). > > Use if_index instead of a pointer to the interface name. if_index is > a unique interface number start from 1. Many routing related programs > use if_index as an interface identifier and if_index is defined in > RFC2133 (Basic Socket Interface Extensions for IPv6). > > --Kenjiro > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-current" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message