netdev
[Top] [All Lists]

Re: icmpv6

To: Imran.Patel@xxxxxxxxx
Subject: Re: icmpv6
From: Andi Kleen <ak@xxxxxx>
Date: Tue, 13 Feb 2001 17:48:00 +0100
Cc: netdev@xxxxxxxxxxx
In-reply-to: <2D6CADE9B0C6D411A27500508BB3CBD063CD76@eseis15nok>; from Imran.Patel@nokia.com on Tue, Feb 13, 2001 at 04:51:21PM +0100
References: <2D6CADE9B0C6D411A27500508BB3CBD063CD76@eseis15nok>
Sender: owner-netdev@xxxxxxxxxxx
On Tue, Feb 13, 2001 at 04:51:21PM +0100, Imran.Patel@xxxxxxxxx wrote:
> hello,
> i am currently working on a nat-pt (rfc 2766) implementation on linux. But i
> have just run into some sort of problem. i would like to convert between
> icmpv4 and icmpv6. But the skbuff handed over to me doesn't have any icmpv6
> member in the transport header. I have seen in the skbuff.h and i have found
> out that there is no icmpv6hdr member in the h union. so how do i get a
> reference to the icmpv6 data. I have used icmphdr instead and i am getting
> weird results.

You didn't describe how you hook into the stack. In case of a netfilter
module you currently need to walk the complete Ipv6 header chain to find 
the protocol header you want, beginning with the ipv6 header (->nh.ipv6h)



-Andi

<Prev in Thread] Current Thread [Next in Thread>