From: Mistick Levi <gmistick@gmail.com>
To: "netfilter-devel@vger.kernel.org" <netfilter-devel@vger.kernel.org>
Subject: libnetfilter_queue - remove packet from kernel buffer, and reinject later
Date: Tue, 19 Jan 2010 21:25:44 +0200 [thread overview]
Message-ID: <6c279bde1001191125u28fa13a4i4fd7973cf950cccc@mail.gmail.com> (raw)
Hi,
I've worked with libipq, and libnetfilter_queue, and i got to a place
where my userspace code can't get anymore packets( with the message:
netlink message: no buffer space available ) .
Now what i want to do is this:
Read a packet from the queue, copy it to my own queue/location in my
program, and re injecting the packet later on with my verdict, after i
finished.
but to my best of my understanding, until i send a verdict the packet
still takes place in the queue.
and i've read something about using NF_STOLEN and then reinject, but i
dont think that NF_STOLEN is a valid verdict.
Any ideas on how i can do what it is i wish to do? ( Clear the kernel
queue by transferring the packets to my queue ).
Kind regards
Levi Yechiel
next reply other threads:[~2010-01-19 19:25 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-19 19:25 Mistick Levi [this message]
2010-01-19 22:54 ` libnetfilter_queue - remove packet from kernel buffer, and reinject later Eric Leblond
2010-01-20 20:13 ` Mistick Levi
2010-01-21 7:08 ` Eric Leblond
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=6c279bde1001191125u28fa13a4i4fd7973cf950cccc@mail.gmail.com \
--to=gmistick@gmail.com \
--cc=netfilter-devel@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).