From owner-freebsd-net Tue Apr 24 1: 2:31 2001 Delivered-To: freebsd-net@freebsd.org Received: from coconut.itojun.org (coconut.itojun.org [210.160.95.97]) by hub.freebsd.org (Postfix) with ESMTP id 159BE37B43F for ; Tue, 24 Apr 2001 01:02:30 -0700 (PDT) (envelope-from itojun@itojun.org) Received: from itojun.org (localhost [127.0.0.1]) by coconut.itojun.org (Postfix) with ESMTP id DAC104B0B; Tue, 24 Apr 2001 17:02:23 +0900 (JST) To: raviprasad20@netscape.net Cc: freebsd-net@freebsd.org In-reply-to: raviprasad20's message of Tue, 24 Apr 2001 03:51:24 -0400. <319837D4.1D2FA72E.9513E96F@netscape.net> X-Template-Reply-To: itojun@itojun.org X-Template-Return-Receipt-To: itojun@itojun.org X-PGP-Fingerprint: F8 24 B4 2C 8C 98 57 FD 90 5F B4 60 79 54 16 E2 Subject: Re: if_index ( index in the kernel datastructure) From: itojun@iijlab.net Date: Tue, 24 Apr 2001 17:02:23 +0900 Message-ID: <17877.988099343@itojun.org> Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >this is with reference to the free BSD networking code for ipv6. >Could any body tell why in link local addresses & other link local related things they are storing if_index in the second 16bits of the address. for eg there will be statement like >ia->ia_addr.sa_addr.sin_add16[1] = ifp->if_index. >Please tell me its significance & how it is useful & why u have chosen to use as such. http://orange.kame.net/dev/cvsweb.cgi/kame/IMPLEMENTATION (see section 1.3) itojun To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message