Hi,
Iam furnishin all the information requested by u.
1) My system version( output of uname -a)
FReeBSD 4.2-RELEASE FreeBSD 4.2-RELEASE #19: Sat Jun 2 23:43:40 IST 2001
root@:/usr/src/sys/compile/PFXKERNEL i386.
2) Iam not presenly using the prefix command. Iam entering the prefixes in the
configuration file "/etc/defaults/dc.conf" as
ipv6_prefix_wb0="fec0:0010:0000:0000 fec0:0011:0000:0000".
3) Iam using the "if_prefixhead" member of the "ifnet" structure to just get the
prefixes configured for the interface. If it can be got from the in6_ifaddr structure
itself then kindly help me with this.
4) I couldn't understand ur 4th point of
"please do not use the start up script, but do operation by hand
(for diagnose the problem)."
If this means not to use the configuration file to enter the prefixes
then sorry iam using it.
My basic point is this
I enter prefixes through prefix command.
My other machine forms an address correctly with this prefix.
the only problem was displaying the prefixes. I used the if_prefixhead member of the
ifnet structure for this.For the above prefix the output of the printf is some what
differnet.
If prefix is fec0:0011:0000:0000 then
the display is
0000:0000:00fe:c000:1100:0000:0000:0000.
The prefix is stored in the ifpr_prefix member of the ifprefx structure. As far as i
know all the prefixes are stored in the general in6_addr structure. If i enter the
prefix as fec0:0011:0000:0000 then i believe it should be stored as
fec0:0011:0000:0000:0000:0000:0000:0000.
But if u look at my output i feel that the prefix is stored like this.
0000:0000:00fe:c000:1100:0000:0000:0000 in the sockaddr structure pointed
to by the ifpr_prefix member of the ifprefix structure.
Kindly mail me ur valuable sugesstions.
regards
ravi prasad
JINMEI Tatuya /
<[EMAIL PROTECTED]> wrote:
>
> >>>>> On Mon, 11 Jun 2001 00:49:01 -0400,
> >>>>> [EMAIL PROTECTED] said:
>
> > 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]);
> ...
>
> > 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
>
> sorry, I don't still get enough information.
>
> 1. please specify the exact version of your system (e.g. output of
> 'uname -a')
> 2. please forget the prefix command. Use the ifconfig(8) command
> instead.
> 3. then, please forget the prefix structure. stick to the traditional
> (in6_)ifaddr structure.
> 4. please do not use the start up script, but do operation by hand
> (for diagnose the problem).
>
> 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