From owner-freebsd-net Sun Jun 10 21:49:23 2001 Delivered-To: freebsd-net@freebsd.org Received: from imo-d03.mx.aol.com (imo-d03.mx.aol.com [205.188.157.35]) by hub.freebsd.org (Postfix) with ESMTP id D177737B410 for ; Sun, 10 Jun 2001 21:49:04 -0700 (PDT) (envelope-from raviprasad20@netscape.net) Received: from raviprasad20@netscape.net by imo-d03.mx.aol.com (mail_out_v30.22.) id n.2.1875aaf (16229) for ; Mon, 11 Jun 2001 00:49:02 -0400 (EDT) Received: from netscape.com (aimmail03.aim.aol.com [205.188.144.195]) by air-in02.mx.aol.com (v78_r3.8) with ESMTP; Mon, 11 Jun 2001 00:49:01 -0400 Date: Mon, 11 Jun 2001 00:49:01 -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: <4422252A.3BE36C03.9513E96F@netscape.net> References: <39199B3B.03898409.9513E96F@netscape.net> <0BDE53AB.15B71EF0.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, What i did to print the prefixes on a perticular ifnet structure are as follows. I entered the prefixes a) fec0:11:0:0 in the configuration file for the interface wb0. I wrote a printf in the ip6_input function. the printf is as follows printf(" %x \t", ifp->if_prefixhead.tqe_next->prefix.s6_addr8[0]); printf(" %x \t", ifp->if_prefixhead.tqe_next->prefix.s6_addr8[1]); printf(" %x \t", ifp->if_prefixhead.tqe_next->prefix.s6_addr8[2]); printf(" %x \t", ifp->if_prefixhead.tqe_next->prefix.s6_addr8[3]); printf(" %x \t", ifp->if_prefixhead.tqe_next->prefix.s6_addr8[4]); printf(" %x \t", ifp->if_prefixhead.tqe_next->prefix.s6_addr8[5]); printf(" %x \t", ifp->if_prefixhead.tqe_next->prefix.s6_addr8[6]); printf(" %x \t", ifp->if_prefixhead.tqe_next->prefix.s6_addr8[7]); printf(" %x \t", ifp->if_prefixhead.tqe_next->prefix.s6_addr8[8]); printf(" %x \t", ifp->if_prefixhead.tqe_next->prefix.s6_addr8[9]); printf(" %x \t", ifp->if_prefixhead.tqe_next->prefix.s6_addr8[10]); printf(" %x \t", ifp->if_prefixhead.tqe_next->prefix.s6_addr8[11]); printf(" %x \t", ifp->if_prefixhead.tqe_next->prefix.s6_addr8[12]); printf(" %x \t", ifp->if_prefixhead.tqe_next->prefix.s6_addr8[13]); printf(" %x \t", ifp->if_prefixhead.tqe_next->prefix.s6_addr8[14]); printf(" %x \t", ifp->if_prefixhead.tqe_next->prefix.s6_addr8[15]); Where ifp is declared as , struct ifnet *ifp; Then i bulit a new kernel, compiled it & loaded it as my working kernel. Each time any ip6 input used to come the above printf used to get executed. I gave the following command on the prompt pin6 -I wb0 fe80::280:48ff:feb6:57ac I got the following output for the prefix fec0:11:0:0 in the configuration file. Output 0 0 0 0 0 0 fe c0 00 11 00 00 00 00 00 My expectation was that the prefix fec0 would be the first 2bytes but they are located after 6bytes. Could u tell me what is wrong & why am i getting this print out. Waiting for ur reply. regards ravi prasad JINMEI Tatuya / wrote: > > >>>>> On Wed, 06 Jun 2001 08:43:51 -0400, > >>>>> raviprasad20@netscape.net said: > > > 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. > > Please show us the exact version of your system, send the entire diff > to the kernel, and tell us the exact command line argument(s) that > causes the kernel output. > > No one can diagnose problems with incomplete information. > >                     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