All of lore.kernel.org
 help / color / mirror / Atom feed
* sending event to user space
@ 2003-12-03 14:23 pablo neira
  2003-12-04 11:49 ` Harald Welte
  0 siblings, 1 reply; 2+ messages in thread
From: pablo neira @ 2003-12-03 14:23 UTC (permalink / raw)
  To: netfilter-devel

Hi list!

I programmed a dummy module for netfilter which tries to match a packet 
and if it does, it will do nothing (NF_ACCEPT) but I would want it to 
send an event to a program in user space to do something, how can I do that?

So something like:

a) packet gets my hook and do NF_ACCEPT.
b) modules sends an event to user space.
c) program in user space does something.

Thanks!
Pablo

P.S: thanks for this great piece of code!!

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: sending event to user space
  2003-12-03 14:23 sending event to user space pablo neira
@ 2003-12-04 11:49 ` Harald Welte
  0 siblings, 0 replies; 2+ messages in thread
From: Harald Welte @ 2003-12-04 11:49 UTC (permalink / raw)
  To: pablo neira; +Cc: netfilter-devel

[-- Attachment #1: Type: text/plain, Size: 939 bytes --]

On Wed, Dec 03, 2003 at 03:23:17PM +0100, pablo neira wrote:
> Hi list!
> 
> I programmed a dummy module for netfilter which tries to match a packet 
> and if it does, it will do nothing (NF_ACCEPT) but I would want it to 
> send an event to a program in user space to do something, how can I do that?

That is not really netfilter related at all.  You could create a /proc
file and write something to it, you could use netlink sockets, you could
use any means that the kernel provides for communication with userspace
processes...
 
> Thanks!
> Pablo

-- 
- Harald Welte <laforge@netfilter.org>             http://www.netfilter.org/
============================================================================
  "Fragmentation is like classful addressing -- an interesting early
   architectural error that shows how much experimentation was going
   on while IP was being designed."                    -- Paul Vixie

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-12-04 11:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-12-03 14:23 sending event to user space pablo neira
2003-12-04 11:49 ` Harald Welte

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.