* stop at ipq_read(h,buf,BUFFERSIZE,0)
@ 2003-12-01 23:15 Jee J.Z.
2003-12-01 23:37 ` Sven Schuster
0 siblings, 1 reply; 2+ messages in thread
From: Jee J.Z. @ 2003-12-01 23:15 UTC (permalink / raw)
To: netfilter; +Cc: Eric Leblond
Hi all,
I try to run the example code on libipq man page. Unfortunately, the program
stops at
status = ipq_read(h,buf,BUFFERSIZE,0);
It seems the program is waiting for packets input into the buffer, but
packets never go in. Can anybody help me? Thank you in advance!
Jee
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: stop at ipq_read(h,buf,BUFFERSIZE,0)
2003-12-01 23:15 stop at ipq_read(h,buf,BUFFERSIZE,0) Jee J.Z.
@ 2003-12-01 23:37 ` Sven Schuster
0 siblings, 0 replies; 2+ messages in thread
From: Sven Schuster @ 2003-12-01 23:37 UTC (permalink / raw)
To: Jee J.Z.; +Cc: netfilter
Hi Jee,
at first you need to
modprobe ip_queue
and then you need to add a rule like this:
iptables -A INPUT -j QUEUE
to queue packets to userspace. But take care to at first run the sample
program or modify the above rule to not queue every paket (e.g. only
tcp dest port 80), otherwise your box will completely lose network
connectivity because every packet would be queued to userspace but
due to the lack of a program processing it in userspace never be
returned...
HTH
Sven
Jee J.Z. wrote:
>Hi all,
>
>I try to run the example code on libipq man page. Unfortunately, the program
>stops at
>
>status = ipq_read(h,buf,BUFFERSIZE,0);
>
>It seems the program is waiting for packets input into the buffer, but
>packets never go in. Can anybody help me? Thank you in advance!
>
>Jee
>
>
>
>
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-12-01 23:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-12-01 23:15 stop at ipq_read(h,buf,BUFFERSIZE,0) Jee J.Z.
2003-12-01 23:37 ` Sven Schuster
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.