Re: real-time monitor question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Jeffrey,

> 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

By the way, you would have both ends of this particular pipe, since its 
purpose is to isolate the part of your application which reads from 
Netfilter, from the part which writes to the display. It may not even be 
necessary since, as you say:

> all I would loose would be the information on the packets that hit while
> the pipe is full

Yes, I believe so.

> (2) but the packets that hit while the pipe was full would process
> correctly anyway

Yes, it's my understanding that with the ULOG target, unlike QUEUE, 
Netfilter will not wait for your application, or even care what it does, 
as far as the processing of the packet which hit the ULOG target is 
concerned.

> (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.

Yes, that's right.

> 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?

As far as I know, it cannot.

Cheers, Chris.
-- 
   ___ __     _
 / __// / ,__(_)_  | Chris Wilson -- UNIX Firewall Lead Developer |
/ (_ / ,\/ _/ /_ \ | NetServers.co.uk http://www.netservers.co.uk |
\ _//_/_/_//_/___/ | 21 Signet Court, Cambridge, UK. 01223 576516 |



[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux