Date: Tue, 19 May 1998 11:43:14 -0700 (PDT) From: Julian Elischer <julian@whistle.com> To: Kenjiro Cho <kjc@csl.sony.co.jp> Cc: Luigi Rizzo <luigi@labinfo.iet.unipi.it>, current@FreeBSD.ORG Subject: Re: struct ifnet handling... Message-ID: <Pine.BSF.3.95.980519114201.20170G-100000@current1.whistle.com> In-Reply-To: <199805191038.TAA25933@hotaka.csl.sony.co.jp>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.95.980519114201.20170G-100000>