All of lore.kernel.org
 help / color / mirror / Atom feed
* Packets occasionally not queued
@ 2010-09-14 16:53 Roger Sala
  0 siblings, 0 replies; only message in thread
From: Roger Sala @ 2010-09-14 16:53 UTC (permalink / raw)
  To: netfilter

I have some basic netfilter queue code that diverts packets with the 
following two rules:

iptables -A OUTPUT -m tos --tos 0xe0/0xe0 -j QUEUE
iptables -A FORWARD -m tos --tos 0xe0/0xe0 -j QUEUE

It works as expected almost all the time, but occasionally I see cases 
where Wireshark indicates that the packet was received at the nic, but 
my code doesn't log the recv() of it.

I had assumed that my receive buffer was sometimes being overrun, but 
now that I'm throttling back the traffic, I see cases where isolated 
packets just don't get queued, so I assume its a case off competing for 
resources with other processes on the machine.

Is there anything I can do, such as increasing the priority of my 
program, to enhance the likelyhood of receiving all the packets I am 
filtering on?

Thanks



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-09-14 16:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-14 16:53 Packets occasionally not queued Roger Sala

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.