From owner-freebsd-current Tue May 19 03:39:14 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id DAA11805 for freebsd-current-outgoing; Tue, 19 May 1998 03:39:14 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from widefw.csl.sony.co.jp (widefw.csl.sony.co.jp [133.138.1.1]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id DAA11734 for ; Tue, 19 May 1998 03:38:36 -0700 (PDT) (envelope-from kjc@csl.sony.co.jp) Received: from hotaka.csl.sony.co.jp (root@hotaka.csl.sony.co.jp [43.27.98.57]) by widefw.csl.sony.co.jp (8.8.8/3.6W) with ESMTP id TAA25367; Tue, 19 May 1998 19:38:26 +0900 (JST) Received: from localhost (kjc@[127.0.0.1]) by hotaka.csl.sony.co.jp (8.8.8/3.6W/hotaka/98021914) with ESMTP id TAA25933; Tue, 19 May 1998 19:38:25 +0900 (JST) Message-Id: <199805191038.TAA25933@hotaka.csl.sony.co.jp> To: Luigi Rizzo cc: current@FreeBSD.ORG Subject: Re: struct ifnet handling... In-reply-to: Your message of "Mon, 18 May 1998 16:58:54 +0200." <199805181458.QAA07273@labinfo.iet.unipi.it> Date: Tue, 19 May 1998 19:38:25 +0900 From: Kenjiro Cho Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >> 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