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. Message-ID: <4422252A.3BE36C03.9513E96F@netscape.net> References: <39199B3B.03898409.9513E96F@netscape.net> <y7vpuckg5ec.wl@condor2.jinmei.org> <0BDE53AB.15B71EF0.9513E96F@netscape.net> <y7v3d9dpy8w.wl@condor2.jinmei.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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 /
<jinmei@isl.rdc.toshiba.co.jp> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4422252A.3BE36C03.9513E96F>
