Send packets from inside a hook function

Mauricio Oliveto
Tue, 9 Oct 2001 07:15:33 -0700 (PDT)

Hello Antonio,

--- Antonio Duran <> wrote:
> Hi people. I am doing a project with netfilter, and
> don't know if what i was 
> thinking to do is indeed possible.
> That is the question: can you send a new packet
> while you're inside a 
> function connected to a netfilter hook? I want to
> send several packets before 
> returning from the function, but don't mind if
> they're queued or whatever 
> until you leave the hook.
> The other option is copyng the packets i wan to send
> to user space, where a 
> daemon would take them and send them out.

try using libipq from James Morris to do whatever you
want to packets... it is inside pom directory...

> Any thoughts, ideas, reflections ... are welcome.
> Thanks in advance,
> Antonio.


Do You Yahoo!?
NEW from Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.