All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pablo Neira <pablo@eurodev.net>
To: "Horton, Dave" <dhorton@pactolus.com>,
	Netfilter Development Mailinglist
	<netfilter-devel@lists.netfilter.org>
Subject: Re: can a netfilter hook interact with userspace ?
Date: Wed, 21 Jul 2004 18:09:44 +0200	[thread overview]
Message-ID: <40FE9548.30806@eurodev.net> (raw)
In-Reply-To: <2CC2CB3C95C3D311ABAC009027DCD77E01969075@flyhalf.pactolus.com>

Horton, Dave wrote:

>By what means can my userspace program call into my netfilter hook to
>communicate this information?
>  
>

You can use nf_register_sockopt/nf_unregister_sockopt to do so. See Sect 
4.6. Writing New modules -> Receiving Commands From Userspace in the 
netfilter hacking how to. You can find an example in ip_tables.c.

If you don't like using getsocksopt/setsocksopt to pass information to 
kernel space, you could also use netlinks sockets.

regards,
Pablo

  reply	other threads:[~2004-07-21 16:09 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-19  4:29 can a netfilter hook interact with userspace ? Horton, Dave
2004-07-21 16:09 ` Pablo Neira [this message]
  -- strict thread matches above, loose matches on Subject: below --
2004-07-22  1:08 Horton, Dave
2004-07-22  9:17 ` Pablo Neira

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=40FE9548.30806@eurodev.net \
    --to=pablo@eurodev.net \
    --cc=dhorton@pactolus.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.