summaryrefslogtreecommitdiffstats
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2010-10-13automake: add ${top_builddir}/include to AM_CFLAGSAndreas Bießmann2-2/+2
This patch enables out-of-source builds like this $ cd builddir && src_dir/configure && make Before this patch there was an error about missing netlink/version.h which is built by automake in top_builddir rather than top_srcdir which is already in include search path. Signed-off-by: Andreas Bießmann <biessmann@corscience.de>
2010-10-13Use CPPFLAGSThomas Graf1-1/+1
2010-10-13Put preprocessor definitions in AM_CPPFLAGSMatthew L. Creech1-1/+1
When an alternate kernel header include directory is added in CPPFLAGS, the libnl build fails. This is because the local copy of kernel headers is added in AM_CFLAGS, which gets included after CPPFLAGS in the automake-generated makefile. Switching to AM_CPPFLAGS fixes the problems.
2010-07-02Packet Location InterfaceThomas Graf2-1/+42
2010-04-19src/nf-queue.c: cleanup and improve performance of test program for NF_QUEUEKarl Hiramoto1-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>
2009-12-16CLI - Command Line Interface LibraryThomas Graf62-1454/+1212
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}
2009-11-10libnl: fix automake breakagePatrick McHardy1-2/+18
libnl-route must be handled before libnl-nf in lib_LTLIBRARIES since the later depends on the former. Additionally nf-monitor, nl-list-caches, nl-list-sockets and nl-util-addr have been dropped from the Makefile. Signed-off-by: Patrick McHardy <kaber@trash.net>
2009-09-03- Compile with _GNU_SOURCEThomas Graf1-1/+1
- Fixed classifier.c -> cls.c
2009-09-02Merge branch 'master' of git://dev.medozas.de/libnlThomas Graf2-66/+86
Conflicts: lib/Makefile src/Makefile
2009-09-02- Reworked the classifier interface.Thomas Graf10-1/+701
- Added initial ematch support - Added support for the basic classifier - Added support for the cgroup classifier
2009-07-05build: make use of library dependenciesJan Engelhardt1-25/+25
2009-06-23Move to automake-based buildJan Engelhardt2-62/+86
Issues solved: * PACKAGE_VERSION was abused for SOVERSION * unneeded DEP stage * did not support out-of-tree builds * no way to turn off silent mode * overriding CFLAGS at make time was not supported * no static libs were provided Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
2009-04-16Separate compiling from linkingPavel Roskin1-3/+3
This helps users understand where possible warnings come from. It also allows more find-grained control over the build flags.
2009-04-16Include limits.h to fix undefined ULONG_MAX in src/utils.cPavel Roskin1-0/+1
2009-01-21libnl: fix socket function rename related build failurePatrick McHardy4-4/+4
Signed-off-by: Patrick McHardy <kaber@trash.net>
2008-12-10Remove obsoleted struct nl_handle definitionThomas Graf6-6/+6
2008-10-23libnl: nfqueue: add nfqueue specific socket allocation functionPatrick McHardy1-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>
2008-08-19Explicitely link to nl-route when linking nf apps.Thomas Graf1-1/+1
ld won't resolve its own deps in -L../lib/ for some reason.
2008-06-17Remove XML dumpingThomas Graf2-3/+0
Bloats the library, not frequently used
2008-06-17Fix compile errors when linking against libnl-genlThomas Graf3-1/+2
2008-06-17Improvements to address utilitiesThomas Graf5-54/+198
- Moved env var dumping to nl-addr-list.c - support for ipv6 lifetimes - correct and complete help texts
2008-05-23Remove old line counting while dumpingThomas Graf19-20/+20
2008-05-23New set of libnl toolsThomas Graf62-1788/+2143
Converts all tools to the API changes and improves the useability by introducing regular options and long options.
2008-05-16Remove src/f_addr.c, it's no longer usedThomas Graf1-107/+0
2008-05-15utility functions for address toolsThomas Graf2-0/+112
2008-05-15New set of address management toolsThomas Graf8-289/+1070
2008-05-08patch: fixed compilation problem for nl-route-getBen Gamsa1-1/+1
Fixed compilation problem for nl-route-get by adding extra parameter now needed for nltool_alloc_route_cache() function.
2008-05-05Route cache supportThomas Graf5-9/+14
This changesets adds the possibility to fill a nl_cache with the contents of the route cache. It also adds the possibility to limit route caches to certain address families.
2008-04-30Adapt syntax of nl-route-add to nl-route-deleteThomas Graf1-47/+73
2008-04-30Fix segfault nexthop parsing when no option is givenThomas Graf1-0/+4
2008-04-30Adapt syntax of nl-route-list to nl-route-deleteThomas Graf2-41/+63
2008-04-30Improved nl-route-delete featuring an interactive deletion modeThomas Graf2-44/+125
2008-04-29Big routing code rework (API/ABI BREAK!)Thomas Graf12-305/+636
Adds all missing routing attributes and brings the routing related code to a working state. In the process the API was broken several times with the justification that nobody is using this code yet. The changes include new example code which is also a prototype for how plain CLI tools could look like to control routes.
2008-04-29Fix compile warning in nl-list-cachesThomas Graf1-1/+0
2008-04-29Remove dead code in nl-list-socketsThomas Graf1-9/+0
2008-04-29Prepare nl-list-sockets for 64bit addressesThomas Graf1-4/+4
2008-02-07[LIBNL]: Split up nfnetlink_log into log and msg objectsPatrick McHardy1-9/+46
Split the nfnetlink_log code into two seperate objects, "netfilter/log" to represent logging instances and "netfilter/log_msg" to represent log messages. Also perform some function name unification for consistency with other libnl object types, mainly renaming nfnl_log_build_*_msg to nfnl_log_build_*_request. This changes the API in an incompatible way, but since this feature is new and the libnl netfilter headers haven't been installed so far, there shouldn't be any users affected by this. Signed-off-by: Patrick McHardy <kaber@trash.net>
2008-02-07[LIBNL]: Add nfnetlink_queue supportPatrick McHardy1-0/+172
Signed-off-by: Patrick McHardy <kaber@trash.net>
2008-01-09Tell git to ignore temporary files and push to pre9Thomas Graf1-0/+31
2007-12-18Support defining the default callback handler with an environment variableThomas Graf1-29/+1
2007-12-18Read debugging environment variable when initializing the libraryThomas Graf1-12/+0
2007-12-13[LIBNL]: Fix pointer conversion warnings on 64 bitPatrick McHardy1-4/+4
nl-tctree-dump.c: In function 'print_class': nl-tctree-dump.c:31: warning: cast from pointer to integer of different size nl-tctree-dump.c:44: warning: cast from pointer to integer of different size nl-tctree-dump.c: In function 'print_qdisc': nl-tctree-dump.c:55: warning: cast from pointer to integer of different size nl-tctree-dump.c:64: warning: cast from pointer to integer of different size Signed-off-by: Patrick McHardy <kaber@trash.net
2007-12-13[LIBNL]: Fix pointer conversion warnings on 64 bitPatrick McHardy1-4/+4
nl-tctree-dump.c: In function 'print_class': nl-tctree-dump.c:31: warning: cast from pointer to integer of different size nl-tctree-dump.c:44: warning: cast from pointer to integer of different size nl-tctree-dump.c: In function 'print_qdisc': nl-tctree-dump.c:55: warning: cast from pointer to integer of different size nl-tctree-dump.c:64: warning: cast from pointer to integer of different size Signed-off-by: Patrick McHardy <kaber@trash.net>
2007-12-13[LIBNL]: Fix format stringsPatrick McHardy1-1/+1
Use %td for ptrdiff_t and %zu for size_t. Signed-off-by: Patrick McHardy <kaber@trash.net>
2007-10-11Cache message type association interface cleanupsThomas Graf1-1/+1
2007-09-18Allow filtering by name for conntrack status flagsPhilip Craig2-4/+24
2007-09-15Initial importaosp-new/nougat-mr1-arcThomas Graf38-0/+3514