From: Sven Schuster <schuster.sven@gmx.de>
To: "Jee J.Z." <jz105@york.ac.uk>
Cc: netfilter@lists.netfilter.org
Subject: Re: stop at ipq_read(h,buf,BUFFERSIZE,0)
Date: Tue, 02 Dec 2003 00:37:44 +0100 [thread overview]
Message-ID: <3FCBD0C8.5010501@gmx.de> (raw)
In-Reply-To: <002201c3b860$ff1a9810$68892090@grouse>
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
>
>
>
>
>
prev parent reply other threads:[~2003-12-01 23:37 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-12-01 23:15 stop at ipq_read(h,buf,BUFFERSIZE,0) Jee J.Z.
2003-12-01 23:37 ` Sven Schuster [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3FCBD0C8.5010501@gmx.de \
--to=schuster.sven@gmx.de \
--cc=jz105@york.ac.uk \
--cc=netfilter@lists.netfilter.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.