Linux Netfilter discussions
 help / color / mirror / Atom feed
* handle packets by libipq
@ 2004-08-06  6:14 Dan Nguyen
  2004-08-06 12:09 ` Scott MacKay
  0 siblings, 1 reply; 2+ messages in thread
From: Dan Nguyen @ 2004-08-06  6:14 UTC (permalink / raw)
  To: netfilter

Hi all,

I posted this in devel- mailling, but it seem is wrong place. So I
post here to hope the helping.

I plan to use libipq to do the following:
1. capture all packet (both ipv4 and ipv6) on user-space.
2. Modify the captured packet (may tranlate even protocol, i.e
replace ipv4 packet by ipv6 packet).
3. Reinject modified packet to kernel.

The 1st and 2nd tasks had solution by modify the libipq and use rfc.
But I had not have solution in 3nd task.

Please help me to roadmap.

Thanks for your considering.
Dan Nguyen
PS: Sorry if I send to the wrong mailling.



		
__________________________________
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
http://promotions.yahoo.com/new_mail 


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: handle packets by libipq
  2004-08-06  6:14 handle packets by libipq Dan Nguyen
@ 2004-08-06 12:09 ` Scott MacKay
  0 siblings, 0 replies; 2+ messages in thread
From: Scott MacKay @ 2004-08-06 12:09 UTC (permalink / raw)
  To: netfilter

You re-inject using ipq_set_verdict.  Moving a packet
from ipv4 to ipv6...dunno.  ipv4 and ipv6 use 2
different interfaces ( ipq_create_handle(0, PF_INET)
vs  ipq_create_handle(0, PF_INET6) and 2 different
ip_queues (ip_queue.o, ip6_queue.o), so not sure if
you can.  More likely would need to drop from 1 and
regenerate on the other, but not sure on that one.

-Scott


--- Dan Nguyen <dnguyenanh@yahoo.com> wrote:

> Hi all,
> 
> I posted this in devel- mailling, but it seem is
> wrong place. So I
> post here to hope the helping.
> 
> I plan to use libipq to do the following:
> 1. capture all packet (both ipv4 and ipv6) on
> user-space.
> 2. Modify the captured packet (may tranlate even
> protocol, i.e
> replace ipv4 packet by ipv6 packet).
> 3. Reinject modified packet to kernel.
> 
> The 1st and 2nd tasks had solution by modify the
> libipq and use rfc.
> But I had not have solution in 3nd task.
> 
> Please help me to roadmap.
> 
> Thanks for your considering.
> Dan Nguyen
> PS: Sorry if I send to the wrong mailling.
> 
> 
> 
> 		
> __________________________________
> Do you Yahoo!?
> Yahoo! Mail Address AutoComplete - You start. We
> finish.
> http://promotions.yahoo.com/new_mail 
> 
> 



		
__________________________________
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-08-06 12:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-06  6:14 handle packets by libipq Dan Nguyen
2004-08-06 12:09 ` Scott MacKay

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox