From owner-freebsd-net Sun Jun 3 22:53:24 2001 Delivered-To: freebsd-net@freebsd.org Received: from shuttle.wide.toshiba.co.jp (shuttle.wide.toshiba.co.jp [202.249.10.124]) by hub.freebsd.org (Postfix) with ESMTP id 174C737B401 for ; Sun, 3 Jun 2001 22:53:21 -0700 (PDT) (envelope-from jinmei@isl.rdc.toshiba.co.jp) Received: from localhost ([3ffe:501:100f:10c1:f535:71c7:c903:471c]) by shuttle.wide.toshiba.co.jp (8.9.1+3.1W/8.9.1) with ESMTP id OAA24356; Mon, 4 Jun 2001 14:53:21 +0900 (JST) Date: Mon, 04 Jun 2001 14:50:35 +0900 Message-ID: From: JINMEI Tatuya / =?ISO-2022-JP?B?GyRCP0BMQEMjOkgbKEI=?= To: raviprasad20@netscape.net Cc: freebsd-net@FreeBSD.ORG Subject: Re: Display of prefixes in aperticular ifnet structure. In-Reply-To: <39199B3B.03898409.9513E96F@netscape.net> References: <39199B3B.03898409.9513E96F@netscape.net> User-Agent: Wanderlust/2.5.8 (Smooth) Emacs/21.0 Mule/5.0 (SAKAKI) Organization: Research & Development Center, Toshiba Corp., Kawasaki, Japan. MIME-Version: 1.0 (generated by SEMI 1.13.7 - "Awazu") Content-Type: text/plain; charset=US-ASCII X-Dispatcher: imput version 980905(IM100) Lines: 32 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >>>>> On Sat, 02 Jun 2001 09:27:30 -0400, >>>>> raviprasad20@netscape.net said: > I configured some prefixes through the "prefix" command. I then tried to display them as itis by reading the "ifnet" structure's "if_prefixhead" member. The result is like this. > Prefix was set as > #prefix wb0 fec0:11::1 > the prefix displayed later by reading the ifnet structure is as follows. > The data is in 8bits. (Displayed by using the > printf(" %x\t",ifp->if_prefixhead.next->prefix.s6_addr8[0]); & etc till 15) > The output is like this. > 00 00 00 00 00 00 fe c0 00 11 00 00 > 00 00 00 00 > Can any body mail me if I had done some mistake & that's why iam getting the above result? > Or there is some other place where prefixes are stored & from that place we can get prefixes correctly? > Are prefixes stored in this way itself? I'm not sure, but we (the KAME project) would really recommend not to use the prefix command, but stick to legacy ifconfig(8). We've found many weird situations (including kernel panic) that the prefix manipulation cause, so the prefix command and the underling kernel has already been obsoleted in the KAME snaps, and the change will be merged into future releases of FreeBSD. JINMEI, Tatuya Communication Platform Lab. Corporate R&D Center, Toshiba Corp. jinmei@isl.rdc.toshiba.co.jp To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message