All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jon Webb <jon_webb@binary-one.com>
To: netfilter-devel@lists.netfilter.org
Subject: Re: using ip_queue in kernel space
Date: Thu, 04 Mar 2004 15:20:34 -0800	[thread overview]
Message-ID: <4047B9C2.6050706@binary-one.com> (raw)
In-Reply-To: <Pine.LNX.4.56L0.0403041712040.12794@zero.fdns.net>


Unit Zero wrote:

>I've been curious for a while about the viability of using ip_queue from 
>a kernel module, without any userland side. It seems that ip_queue is 
>really only used for deferring the verdict on packets to a userspace 
>program, but if I simply install a queue handler in the module init 
>entrypoint and then install a netfilter hook that returns a QUEUE verdict 
>on packets I want, and then do whatever in my queue handler, (kick off 
>timer tasks to issue verdicts or some other such thing) will this work? 
>
>  
>
Of course, there are kernel level calls for getting packets out and 
reinjecting them... They can be called from a kernel module. I tried to 
do this once, and it worked ok, except that I needed access to the 
kernel routing table flags to decide what to do with the packets, and I 
could only get at those from userspace (ironically), so I had to abandon 
that implementation.

- Jon Webb

      parent reply	other threads:[~2004-03-04 23:20 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-04 22:21 using ip_queue in kernel space Unit Zero
2004-03-04 22:56 ` Henrik Nordstrom
2004-03-04 23:32   ` Unit Zero
2004-03-04 23:20 ` Jon Webb [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=4047B9C2.6050706@binary-one.com \
    --to=jon_webb@binary-one.com \
    --cc=netfilter-devel@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.