Linux Netfilter discussions
 help / color / mirror / Atom feed
From: "Jeffrey D. Brower" <jeff@pointhere.net>
To: Chris Wilson <chris@netservers.co.uk>
Cc: netfilter@lists.netfilter.org
Subject: Re: real-time monitor question
Date: Wed, 6 Aug 2003 11:49:04 -0400	[thread overview]
Message-ID: <04b001c35c32$436a5c70$0b02a8c0@pointhere.net> (raw)
In-Reply-To: Pine.LNX.4.44.0308061022320.21531-100000@localhost

Hi Chris,

You are a big help again!  Thanks for your replies.

> If you set the O_NONBLOCK option on your end of the pipe, then if the pipe
> is full the operating system will just return an EAGAIN error immediately,
> instead of waiting for the pipe to empty. In any case, it doesn't matter
> much if the input process blocks, since packet processing will continue
> anyway without interference from your process.

Very cool.  I would want to continue processing packets even if my process
was falling behind so that works for me.

Let me be sure I understand all my input from the list:  (1) By setting the
O_NONBLOCK option on my end of the pipe, all I would loose would be the
information on the packets that hit while the pipe is full,  (2) but the
packets that hit while the pipe was full would process correctly anyway,
and (3) the input process can block and the output process nonblock so that
the packet filter can run full speed and I can potentially not miss anything
since the input side blocks and give me more time.

Do you know if ULOG can send an entry once a second with a summary of # of
packets that hit rules which would give me fewer reads on the pipe?

    Jeff




  reply	other threads:[~2003-08-06 15:49 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-04 17:31 real-time monitor question Jeffrey D. Brower
2003-08-05  9:20 ` Chris Wilson
2003-08-05 18:10   ` Jeffrey D. Brower
2003-08-06  9:27     ` Chris Wilson
2003-08-06 15:49       ` Jeffrey D. Brower [this message]
2003-08-06 15:48         ` Chris Wilson
     [not found] <09B04A55822EFF4DA48D2E0BB2941D4A15C03F@wardrive.citadelcomputer.com.au>
2003-08-05  1:32 ` Jeffrey D. Brower
  -- strict thread matches above, loose matches on Subject: below --
2003-08-05  1:44 George Vieira
2003-08-05 18:10 ` Jeffrey D. Brower

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='04b001c35c32$436a5c70$0b02a8c0@pointhere.net' \
    --to=jeff@pointhere.net \
    --cc=chris@netservers.co.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox