AgeCommit message (Collapse)AuthorFilesLines
2009-09-02Add support for getting and deleting queueing classes.olc2-0/+83
2009-09-02Fix rtnl_addr cachingDan Winship1-2/+1
addr_obj.ops.oo_id_attrs included ADDR_ATTR_PEER, so any address that didn't have a peer address set would compare as unequal to itself, meaning it could never be removed from a cache after it was added, etc.
2009-09-02Patch for unexpectedly aligned messagesMarc de Kruijf1-1/+1
I found the following bug, where nlmsg_ok() in lib/msg.c would incorrectly return 'true' when the input argument 'remaining' was a negative number. This happens when the message is not aligned the way that libnl expects (although it is still legal). In the comparison of the signed and unsigned numbers on line 284, the signed number gets converted to an unsigned number, which is unexpected and naturally produces a bug. My patch is below. The cast is ugly, but it fixes the problem.
2009-09-02- Reworked the classifier interface.Thomas Graf31-201/+2047
- Added initial ematch support - Added support for the basic classifier - Added support for the cgroup classifier
2009-07-20nl_object_clone: properly clone ce_mask fieldAlexander Sack1-0/+1
based on my finding, ce_mask needs to be identical on clones; otherwise some functions (like "dump") will treat clones differently.
2009-07-20Declare struct ucred in handlers.h and netlink.hPavel Roskin2-0/+3
Both files refer to it. The sources including those files are not guaranteed to include sys/socket.h to ensure that struct ucred is defined.
2009-07-05build: make use of library dependenciesJan Engelhardt2-25/+28
2009-06-23Move to automake-based buildJan Engelhardt20-1559/+261
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 <>
2009-05-04release_local_port: properly compute the bitmap positionInaky Perez-Gonzalez1-1/+1
Current calculation is always off, not reflecting the right position in the bitmap, which results in failures due to conflicts (detected at the kernel level) when trying to open a new handle. Signed-off-by: Inaky Perez-Gonzalez <>
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-16nl_object_priv() is inline, so define it in the headerPavel Roskin2-6/+5
2009-04-16Remove all versioned libraries on "make clean"Pavel Roskin1-1/+1
2009-04-16Fix parallel buildPavel Roskin1-3/+3
When linking against libnl, require to exist. When linking against libnl-route, require to exist.
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 <>
2008-12-10Fix up naming changesThomas Graf2-2/+2
2008-12-10restructure module documentation orderThomas Graf13-73/+50
split hiearchy into one top level module per library
2008-12-10Remove obsoleted struct nl_handle definitionThomas Graf8-10/+7
2008-12-10Consistent naming of socket functionsThomas Graf2-45/+46
2008-12-03Update doc style sheet to latest defaultThomas Graf1-67/+230
2008-12-03Documentation updateThomas Graf4-209/+381
2008-12-03Allow to pass multiple group values to membership functionsHolger Eitzenberger2-20/+54
Instead of calling the membership functions several times it is helpfull to extend the API and make the single group functions a special case. The value 0 (NFNLGRP_NONE) terminates this list. Example use: nl_socket_add_memberships(sock, group_1, group_2, 0); nl_socket_drop_memberships(sock, group_1, group_2, 0); Signed-off-by: Holger Eitzenberger <>
2008-10-30libnl: add some errno codes to nl_syserr2nlerrPatrick McHardy1-0/+2
Signed-off-by: Patrick McHardy <>
2008-10-23libnl: nfqueue: add nfqueue specific socket allocation functionPatrick McHardy3-1/+16
commit e92539843a0c7e5116254382626cce226bf2135e Author: Patrick McHardy <> 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 <>
2008-10-20Add internal wait_for_ack() which only waits for ACK if !NL_NO_AUTO_ACKThomas Graf13-20/+28
This changeset ensures that internal code properly synchronizes to ACKs if ACKs are enabled and otherwise return immediately.
2008-10-20Add socket flag NL_NO_AUTO_ACK to allow disabling auto ACKSThomas Graf4-2/+35
2008-10-15Error handling for rtnl_cls_set_kind() & addition of rtnl_cls_get_ops()Thomas Graf2-2/+13
2008-10-15Use 16bit ints for classifier prio/protocolThomas Graf3-10/+10
2008-10-14Replace NL_KEEP code with proper message reference countingThomas Graf5-50/+35
Adds reference counting to netlink messages so callbacks can hold on to a message without using the broken keep message flag.
2008-10-10Only include local addr as peer addr if providedWolfgang Steudel1-1/+1
we're using libnl-1.1 for a project. When trying to delete all addresses of an interface by only setting interface index and address family of an rtnl_addr and executing rtnl_addr_delete() we received some error (I don't remember what it was). The bug(?) is in build_addr_msg() in lib/route/addr.c: IFA_ADDRESS is set to a_local when a_peer is not set, without checking if a_local was set. We just added if (tmpl->ce_mask & ADDR_ATTR_LOCAL) after the "else" (line 496 in the current git).
2008-10-10fix lib symlinksPatrick McHardy1-0/+4
2008-10-10From: Kees Cook <>Thomas Graf1-0/+1
Hello! It seems that libnl is missing an include for limits.h, which causes it to FTBFS when glibc 2.8 is installed (currently in experimental, so I left this bug severity at "normal").
2008-08-20test updatesThomas Graf4-82/+47
2008-08-19adapt configure to generate libnl-2.0.pcThomas Graf1-1/+1
2008-08-19Changed to libnl-2.0.pc.inJames J. Dines2-1/+1
(Also changed top level Makefile to reflect the change in libnl version)
2008-08-19libnl: fix about 100 warningsHolger Schurig1-0/+1
In file included from addr.c:28: ../include/netlink-local.h:119:1: warning: "__deprecated" redefined In file included from /usr/include/linux/stddef.h:4, from /usr/include/linux/posix_types.h:4, from /usr/include/linux/types.h:8, from ../include/netlink-local.h:37, from addr.c:28: /usr/include/linux/compiler.h:45:1: warning: this is the location of the previous definition This happens about 100 times. Suggested patch:
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 Graf8-251/+0
Bloats the library, not frequently used
2008-06-17Fix compile errors when linking against libnl-genlThomas Graf5-10/+11
2008-06-17Improvements to address utilitiesThomas Graf7-188/+294
- Moved env var dumping to nl-addr-list.c - support for ipv6 lifetimes - correct and complete help texts
2008-06-17<netlink/addr.h> requires <netdb.h>Thomas Graf1-0/+1
2008-06-17Need <linux/in_route.h>Thomas Graf1-0/+1
2008-06-16Improved printing of route cache entriesThomas Graf1-5/+23
2008-06-16Extend nl_time2int() and rename it to nl_str2msec()Thomas Graf2-14/+30
Support parsing of more complex time duration input.
2008-06-13Introduce nla_strdup() to help parse strings attributesThomas Graf2-0/+6
2008-06-13Properly handle addr=NULL in nl_addr2strThomas Graf1-2/+5
2008-05-26Remove unused dp_dump_line()Thomas Graf1-2/+0
2008-05-26Update linux/rtnetlink.h to upstream versionThomas Graf1-2/+3
2008-05-23Remove old line counting while dumpingThomas Graf59-966/+758
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.