All of lore.kernel.org
 help / color / mirror / Atom feed
* nfqueue/ipq difference
@ 2006-10-17 22:10 robert
  2006-10-20 10:02 ` Patrick McHardy
  0 siblings, 1 reply; 2+ messages in thread
From: robert @ 2006-10-17 22:10 UTC (permalink / raw)
  To: netfilter-devel

As I was migrating to NFQUEUE, I noticed a small difference.  If you  
are polling on an IPQ filedescriptor, then the error bit is set if  
the queue runs out of buffer space.  In NFQUEUE, the error bit is  
never set, but after doing a read, there is an error.  This error bit  
is relatively important and in most applications would want to handle  
a read  since both IPQ and NFQUEUE will not queue any new packets  
until the entire buffer is flushed.  (at least, this is the behavior  
that I am seeing).

If anyone is interested, i could post two small test programs that  
illustrate this behavior. (not sure if this would be considered a bug).

cheers,
robert

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

* Re: nfqueue/ipq difference
  2006-10-17 22:10 nfqueue/ipq difference robert
@ 2006-10-20 10:02 ` Patrick McHardy
  0 siblings, 0 replies; 2+ messages in thread
From: Patrick McHardy @ 2006-10-20 10:02 UTC (permalink / raw)
  To: robert; +Cc: netfilter-devel

robert wrote:
> As I was migrating to NFQUEUE, I noticed a small difference.  If you 
> are polling on an IPQ filedescriptor, then the error bit is set if  the
> queue runs out of buffer space.  In NFQUEUE, the error bit is  never
> set, but after doing a read, there is an error.  This error bit  is
> relatively important and in most applications would want to handle  a
> read  since both IPQ and NFQUEUE will not queue any new packets  until
> the entire buffer is flushed.  (at least, this is the behavior  that I
> am seeing).
> 
> If anyone is interested, i could post two small test programs that 
> illustrate this behavior. (not sure if this would be considered a bug).

Please, I can not see any difference between ipq and nfnetlink_queue.

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

end of thread, other threads:[~2006-10-20 10:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-17 22:10 nfqueue/ipq difference robert
2006-10-20 10:02 ` Patrick McHardy

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.