From owner-freebsd-net Wed Jun 6 5:44: 0 2001 Delivered-To: freebsd-net@freebsd.org Received: from imo-m05.mx.aol.com (imo-m05.mx.aol.com [64.12.136.8]) by hub.freebsd.org (Postfix) with ESMTP id A40A637B406 for ; Wed, 6 Jun 2001 05:43:56 -0700 (PDT) (envelope-from raviprasad20@netscape.net) Received: from raviprasad20@netscape.net by imo-m05.mx.aol.com (mail_out_v30.22.) id n.e9.17ce3f6 (16245) for ; Wed, 6 Jun 2001 08:43:51 -0400 (EDT) Received: from netscape.com (aimmail09.aim.aol.com [205.188.144.201]) by air-in03.mx.aol.com (v78_r3.8) with ESMTP; Wed, 06 Jun 2001 08:43:51 -0400 Date: Wed, 06 Jun 2001 08:43:51 -0400 From: raviprasad20@netscape.net To: freebsd-net@freebsd.org Subject: Re: Display of prefixes in aperticular ifnet structure. Mime-Version: 1.0 Message-ID: <0BDE53AB.15B71EF0.9513E96F@netscape.net> References: <39199B3B.03898409.9513E96F@netscape.net> X-Mailer: Franklin Webmailer 1.0 Content-Type: text/plain; charset="ISO-8859-1" 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 Hi, As per your advice i left the prefix command & gave prefixes in the configuration file /etc/defaults/rc.conf itself. Still my print is the one that that i have mentioned. Kindly reply. regards ravi prasad JINMEI Tatuya / wrote: > > >>>>> 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 > __________________________________________________________________ Get your own FREE, personal Netscape Webmail account today at http://webmail.netscape.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message