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 /
<[EMAIL PROTECTED]> wrote:
>
> >>>>> On Wed, 06 Jun 2001 08:43:51 -0400,
> >>>>> [EMAIL PROTECTED] 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.
> [EMAIL PROTECTED]
>
__________________________________________________________________
Get your own FREE, personal Netscape Webmail account today at
http://webmail.netscape.com/
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-net" in the body of the message