[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
(usagi-users 01406) help required with kernel nat-pt (linux)
- To: usagi-users@xxxxxxxxxxxxxx
- Subject: (usagi-users 01406) help required with kernel nat-pt (linux)
- From: Ravi Samprathi <rsamprat@xxxxxxxxx>
- Date: Thu, 25 Apr 2002 17:38:59 -0700 (PDT)
- Reply-to: usagi-users@xxxxxxxxxxxxxx
Hi
I have one question regarding the nat-pt.
My question is as follows:
I capture an IPV4 packet by registering at the netfilter
pre-routing hook, i translate it to an IPV6 packet and
allocate a newskb for the translated packet.
Now, I want to put the new-ipv6-packet in the IPV6 stack.
How do i do this? How can i put the IPV6 packet
in the IPV6 stack? And also, in the other case, where
i receive an IPV6 packet and translate it to IPV4 packet,
how do i put it on the IPV4 stack?
The flow is as follows:
---At the ipv4 prerouting hook----
receive skb(ipv4) - Done
translate skb to newskb(ipv6) - Done
put newskb on ipv6 stack - How ?????
drop original skb - Done
----At the ipv6 prerouting hook-----
receive skb(ipv6) - Done
translate skb to newskb(ipv4) - Done
put newskb on ipv4 stack - How ?????
drop original skb - Done
I used netif_rx(newskb), but this doesnt seem to be
working.
Please help me.
I greatly appreciate any pointers/feedback/help.
I am hoping you will help me with this.
Thanks very much.
Have a good day.
Best regards.
Ravi