summaryrefslogtreecommitdiffstats
path: root/include
AgeCommit message (Collapse)AuthorFilesLines
2014-02-14Merge remote-tracking branch 'upstream_linaro/linaro-libnl2_0'JP Abgrall72-1049/+2211
* upstream_linaro/linaro-libnl2_0: (159 commits) Updating group definition to follow 3.13 kernel Adding version.h Adding support for netlink API and quota in nfaccounting Compile 2.0 with Kitkat Don't include pktloc_syntax.h in BUILT_SOURCES route_obj: don't add empty destination to nlmsg automake: add ${top_builddir}/include to AM_CFLAGS Use CPPFLAGS Put preprocessor definitions in AM_CPPFLAGS add user data to change_func_t for caches Trivial fix for TBF memleak libnl: optionally disable cli tools. Ignore vim swap files Let git ignore generated pktloc source files Fix compile warning in utils.c Fix compile warning in nl.c Packet Location Interface src/nf-queue.c: cleanup and improve performance of test program for NF_QUEUE Don't install private header files. object: fix attribute comparison ... Conflicts: Android.mk include/linux/netfilter/nfnetlink.h Change-Id: I383749ca16113b2ae8cfc7729aee8bbc8a36dc9e
2014-01-26Updating group definition to follow 3.13 kernelMathieu Poirier1-0/+2
The 3.13 added NFNLGRP_NFTABLES to the list of nfnetlink groups. Adding to the list in order to keep things synchronised. Change-Id: Ied34a23c3e7379c13a14e98915a072707c34bb0f Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
2014-01-07Adding version.hMathieu Poirier1-0/+18
This is usually autogenerated by the configure scripts but there isn't such a thing in Android. As such adding here. Change-Id: Ia4393e73358a85f4ab0b7a3f8f05cbeb8974a529 Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
2014-01-07Adding support for netlink API and quota in nfaccountingMathieu Poirier2-0/+31
- Adding NF ACCOUNTING subsystem as in kernel header. - Adding NF ACCOUNTING subsystem as in kernel header. - Adding accounting quota group ID. Change-Id: I86ed088f48c252739284adc4270a60925dac3f54 Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
2014-01-07Compile 2.0 with KitkatMathieu Poirier2-4/+3
Mostly following example set by Arik Nemtsov for Froyo. Change-Id: I4c6b56e32f8a9f80bbd224e62e26052074b428d9 Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
2014-01-06Adding support for netlink API and quota in nfaccountingMathieu Poirier2-0/+31
- Adding nfnl.c to the list of APIs to compile. - Adding NF ACCOUNTING subsystem as in kernel header. - Adding connection tracking quota group. Change-Id: I5bc2c415723418d6e91e457e8eac9b3205798981 Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
2011-02-09compiles for froyo with Android.mkArik Nemtsov3-1/+13
renamed include/linux/if.h header to not interfere with definitions. added missing definitions for use by hostapd.
2010-10-13add user data to change_func_t for cachesAndreas Fett2-3/+7
the patch below adds the possibility to pass user data to callbacks of type change_func_t when using the nl_cache_mngr_* family of functions. If there is any better way to do this, without duplicating the code in cache_mngr.c please let me know.
2010-07-03Fix compile warning in nl.cThomas Graf1-1/+1
2010-07-02Packet Location InterfaceThomas Graf3-1/+47
2010-04-19Don't install private header files.Thomas Graf1-5/+1
2010-04-19object: fix attribute comparisonPatrick McHardy1-2/+14
Currently two attributes are regarded as different if they are absent in both objects to be compared. This is obviously incorrect, change to regard objects as different if an attribute is only present on one of them or if the attribute data differs. Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-04-19addr: restore anycast functionsPatrick McHardy1-0/+3
Seems it got lost during some cleanups. Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-03-10new function nfnl_queue_msg_send_verdict_payload()Karl Hiramoto1-1/+3
nfnl_queue_msg_send_verdict_payload() will to send the verdict, mark, and possibly changed payload through the netlink socket. Add a few docbook comments in other funcs. Signed-off-by: Karl Hiramoto <karl@hiramoto.org>
2010-03-10new feature nl_send_iovec(), nl_auto_complete() and code refactoring.Karl Hiramoto1-0/+4
Create new function nl_send_iovec() to be used to send multiple 'struct iovec' through the netlink socket. This will be used for NF_QUEUE, to send packet payload of a modified packet. Refactor nl_send() to use nl_send_iovec() sending a single struct iovec. Create new function nl_auto_complete() by refactoring nl_send_auto_complete(), so other functions that call nl_send may also use nl_auto_complete() Signed-off-by: Karl Hiramoto <karl@hiramoto.org>
2009-12-16CLI - Command Line Interface LibraryThomas Graf8-0/+286
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-09-02Merge branch 'master' of git://dev.medozas.de/libnlThomas Graf2-42/+67
Conflicts: lib/Makefile src/Makefile
2009-09-02Add support for getting and deleting queueing classes.olc1-0/+5
2009-09-02- Reworked the classifier interface.Thomas Graf10-12/+299
- Added initial ematch support - Added support for the basic classifier - Added support for the cgroup classifier
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-06-23Move to automake-based buildJan Engelhardt2-42/+67
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-16nl_object_priv() is inline, so define it in the headerPavel Roskin1-1/+5
2008-12-10Remove obsoleted struct nl_handle definitionThomas Graf1-3/+0
2008-12-10Consistent naming of socket functionsThomas Graf1-42/+32
2008-12-03Allow to pass multiple group values to membership functionsHolger Eitzenberger1-4/+12
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 <holger@eitzenberger.org>
2008-10-23libnl: nfqueue: add nfqueue specific socket allocation functionPatrick McHardy1-0/+2
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-10-20Add internal wait_for_ack() which only waits for ACK if !NL_NO_AUTO_ACKThomas Graf1-0/+8
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 Graf2-0/+3
2008-10-15Error handling for rtnl_cls_set_kind() & addition of rtnl_cls_get_ops()Thomas Graf1-1/+2
2008-10-15Use 16bit ints for classifier prio/protocolThomas Graf2-6/+6
2008-10-14Replace NL_KEEP code with proper message reference countingThomas Graf3-18/+2
Adds reference counting to netlink messages so callbacks can hold on to a message without using the broken keep message flag.
2008-10-10From: Kees Cook <kees@outflux.net>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-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-06-17Remove XML dumpingThomas Graf1-1/+0
Bloats the library, not frequently used
2008-06-17Fix compile errors when linking against libnl-genlThomas Graf2-9/+9
2008-06-17Improvements to address utilitiesThomas Graf1-0/+7
- 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-16Extend nl_time2int() and rename it to nl_str2msec()Thomas Graf1-0/+1
Support parsing of more complex time duration input.
2008-06-13Introduce nla_strdup() to help parse strings attributesThomas Graf1-0/+1
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 Graf8-29/+16
2008-05-22Present port and icmp values in host byte order and beautify printingThomas Graf1-0/+2
This changes make nfnl_ct_get_src_port() and others return the value in host byte order rather than in network byte order. Also splits printing into details and statistical section and improves readability.
2008-05-22Remove change routine, works flawlessly via add() with NLM_F_REPLACEThomas Graf1-4/+0
This breaks the API but is the right thing to do.
2008-05-15Remove references to unused attribute anycastThomas Graf1-3/+0
2008-05-15Allow parser callbacks to return NL_OK, NL_SKIP, NL_EXITThomas Graf1-3/+0
Obsoletes internal P_ACCEPT/P_IGNORE
2008-05-15Uninline various functions to save 7K codeThomas Graf1-187/+10
2008-05-15Rename struct nl_handle to struct nl_sockThomas Graf25-116/+118
The idea of a common handle is long revised and only misleading, nl_handle really represents a socket with some additional action handlers assigned to it. Alias for nl_handle is kept for backwards compatibility.
2008-05-14Check length of provided address labelThomas Graf1-1/+1