On Sat, 19 Aug 2000, JINMEI Tatuya / [ISO-2022-JP] 神明達哉 wrote:
> >>>>> On Sat, 19 Aug 2000 09:46:21 +0900,
> >>>>> [EMAIL PROTECTED] said:
>
> >> i am writing an ipv6 enabled version of ping, and i want to dump informations
> >> collected from ipv6 packets returned by icmpv6 error messages.
> >> the matter is: before i can collect informations from the tcp or udp header
> >> i have to skip the ipv6 extension headers.
> >>
> >> i have found some code which does exactly this in the linux kernel, with a
> >> different purpose. here is a note from alexei kuznetsov (linux kernel
> >> developer):
>
> > please take a look at RFC2292. IPv6 raw socket will not send you
> > the IPv6 header nor extension header, it only sends up the real
> > payload. you will be able to grab information about IPv6 header and
> > extension header, via ancillary data stream.
>
> > so, userland appliation (like your ping6) do not need to worry about
> > extension header, normally. if you would like to take a look at,
> > you can always look at it via ancillary data stream.
>
> I guess the intention of the original message is parsing the inner
> IPv6 packet (including extension headers) within an ICMPv6 error
> message. The advanced API does not strip such extension headers, so
> application programs have to parse and strip the headers by
> themselves.
you have perfectly understood.
> Actually, we have code for this purpose in KAME's ping6 command (see
> the pr_retip() function in ping6.c).
i'll take a look at it. BTW can you explain to me why two different
programs? i think i have successfully integrated icmpv6 support into
netkit-base ping (you can get the patch on my site:
http://project6.ferrara.linux.it)
> BTW: as for the specification, I agree with Tim; it is already clear
> enough and we don't have to revise it.
this is probably the best choice. however what do you think about the
other proposal (the standard macro to skip ext. headers)?
--
Aequam memento rebus in arduis servare mentem...
Mauro Tortonesi [EMAIL PROTECTED]
Ferrara Linux User Group http://www.ferrara.linux.it
Project6 - IPv6 for Linux http://project6.ferrara.linux.it
--------------------------------------------------------------------
IETF IPng Working Group Mailing List
IPng Home Page: http://playground.sun.com/ipng
FTP archive: ftp://playground.sun.com/pub/ipng
Direct all administrative requests to [EMAIL PROTECTED]
--------------------------------------------------------------------