Packets occasionally not queued

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

 



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


--
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[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