summaryrefslogtreecommitdiffstats
path: root/src/nf-queue.c
Commit message (Collapse)AuthorAgeFilesLines
* src/nf-queue.c: cleanup and improve performance of test program for NF_QUEUEKarl Hiramoto2010-04-191-1/+31
| | | | | | | | | | | | | | | | | | | | | | | | * Fix filename in file header * If the kernel or netlink socket becomes over loaded, the kernel starts printing error messages like: nf_queue: full at 1024 entries, dropping packets(s). Dropped: 1 nf_queue: full at 1024 entries, dropping packets(s). Dropped: 2 nf_queue: full at 1024 entries, dropping packets(s). Dropped: 3 So detect out of order packet ID's and set the NF_ACCEPT verdictÂ, so they will be removed from the kernel queue. * increase socket buffer to improve performance without these changes sending more than 100 KB/s over tcp HTTP lo(localhost) was difficult on my core2 duo machine, due to so many dropped packets. After these changes over 150 MB/s was easy. * improve help text Signed-off-by: Karl Hiramoto <karl@hiramoto.org>
* CLI - Command Line Interface LibraryThomas Graf2009-12-161-12/+32
| | | | | Moved common code in src/ used by CLI tools to src/lib/ for possible use by other CLI tools. Just link to libnl-cli.{so|la}
* libnl: fix socket function rename related build failurePatrick McHardy2009-01-211-1/+1
| | | | Signed-off-by: Patrick McHardy <kaber@trash.net>
* libnl: nfqueue: add nfqueue specific socket allocation functionPatrick McHardy2008-10-231-1/+4
| | | | | | | | | | | | | | | | | commit e92539843a0c7e5116254382626cce226bf2135e Author: Patrick McHardy <kaber@trash.net> Date: Thu Oct 23 13:46:16 2008 +0200 libnl: nfqueue: add nfqueue specific socket allocation function nfqueue users usually send verdict messages from the receive callback. When waiting for ACKs, the receive callback might be called again recursively until the stack blows up. Add a nfqueue specific socket allocation function that automatically disables ACKing for the socket. Signed-off-by: Patrick McHardy <kaber@trash.net>
* New set of libnl toolsThomas Graf2008-05-221-80/+27
| | | | | Converts all tools to the API changes and improves the useability by introducing regular options and long options.
* [LIBNL]: Add nfnetlink_queue supportPatrick McHardy2008-02-071-0/+172
Signed-off-by: Patrick McHardy <kaber@trash.net>