summaryrefslogtreecommitdiff
path: root/lib/Makefile.am
Commit message (Collapse)AuthorAgeFilesLines
* Add nl hashtable structures and access functionsroopa2012-11-101-1/+1
| | | | | | | | | | | This patch adds the required structures and access functions to create and manage hashtables for netlink cache objects Signed-off-by: Shrijeet Mukherjee <shm@cumulusnetworks.com> Signed-off-by: Nolan Leake <nolan@cumulusnetworks.com> Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com> Reviewed-by: Wilson Kok <wkok@cumulusnetworks.com> Signed-off-by: Thomas Graf <tgraf@suug.ch>
* Add hash functionroopa2012-11-101-1/+1
| | | | | | | | | | | | | | | | | | | | This patch adds a hash function for hashing libnl objects. This hash function is from: http://ccodearchive.net/info/hash.html The original code was modified to remove unwanted dependencies, unwanted code and fixes to header file locations One requirement with this hash function is, hashing over multiple fields of an un-packed struct requires that the struct be zeroed, otherwise random padding bytes will change the hash. Signed-off-by: Shrijeet Mukherjee <shm@cumulusnetworks.com> Signed-off-by: Nolan Leake <nolan@cumulusnetworks.com> Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com> Reviewed-by: Wilson Kok <wkok@cumulusnetworks.com> Signed-off-by: Thomas Graf <tgraf@suug.ch>
* Checkpoint before compilation attemptRich Fought2012-10-081-1/+2
|
* Run-time version information is now availableКоренберг Марк (дома)2012-08-301-1/+2
| | | | | | | | | | | | | | | | | | | Run-time version information is available as exported four integers: - const int nl_ver_num = LIBNL_VER_NUM; - const int nl_ver_maj = LIBNL_VER_MAJ; - const int nl_ver_min = LIBNL_VER_MIN; - const int nl_ver_mic = LIBNL_VER_MIC; The purpose of this is to get version of compiled library as run time. Use cases: - To know exact version of the library in Python's ctypes module, Say, to find out if nl_cache_mngr_alloc() allow sk=NULL - To make sure that the version of the loaded library corresponds to the version of headers (for the paranoid). Say, to check: if (LIBNL_VER_NUM != nl_ver_num) exit(1);
* Support plug qdisc - queue traffic until explicit releaseShriram Rajagopalan2012-02-141-1/+3
| | | | | | | | | | | | | | | | | | | | | | | The plug qdisc supports two operations - plug and unplug. When the qdisc receives a plug ("buffer") command via netlink request, packets arriving henceforth are buffered until a corresponding unplug command is received. Depending on the type of unplug ("release_one" or "release_indefinite"), the queue can be unplugged indefinitely or selectively. The plug qdisc allows a user to implement network output buffering (aka output commit), used commonly in checkpoint based fault tolerance systems. It also supports a general purpose queue plug/unplug functionality. The associated kernel module is available in David Miller's net-next tree, commit: c3059be16c9ef29c05f0876a9df5fea21f29724f This patch introduces userspace tools and API, to control the qdisc via netlink messages. Signed-off-by: Shriram Rajagopalan <rshriram@cs.ubc.ca> Signed-off-by: Thomas Graf <tgraf@redhat.com>
* cli: Use -avoid-version to link cli modulesThomas Graf2012-01-171-6/+6
| | | | Signed-off-by: Thomas Graf <tgraf@redhat.com>
* Switch to libtool versioning systemThomas Graf2011-09-131-11/+20
| | | | | | | | | | | | | | | | | | It has been a request that multiple libnl versions should be installabe in parallel. In order to achieve this, the basename of the library was changed to libnl-3 which reflects the 3rd generation of libnl APIs. It also means that release based library versioning is left behind and libtool versioning is used instead. Projects using pkgconfig will automatically link against the new library basename and will not notice a difference. The SO versioning is based on the glib model: current := 100 * minor + micro - revision revision := revision age := age (number of backwards compatible versions)
* lib: Use @MAJ_VERSION and @MAJ_MINOR@ for -version-infoThomas Graf2011-09-131-1/+1
|
* 3.1 releaseThomas Graf2011-08-111-1/+1
|
* bonding link moduleThomas Graf2011-07-211-0/+1
|
* dummy interface supportThomas Graf2011-04-151-1/+1
|
* Fix "make distcheck".Thierry Reding2011-03-231-2/+18
| | | | | | | | | This commit adds some missing files (some header files, the files below /etc and the bison/flex files) to the distribution tarball to ensure that libnl can be built from the tarballs created using "make dist". It also adds some incantations to properly generate the flex and bison output since the generated output is no longer shipped in the tarball.
* Fix out-of-tree build.Thierry Reding2011-03-231-1/+1
| | | | | | | This patch fixes out-of-tree build, that is, when building with $builddir != $srcdir. In such a case, some generated header files are not found because they live in a different tree and can be fixed by adding the directories to the compiler's include search path.
* rename sch -> qdiscThomas Graf2011-03-211-3/+4
|
* Unified TC APIThomas Graf2011-03-211-4/+3
| | | | | | | | Finally got rid of all the qdisc/class/cls code duplication in the tc module API. The API takes care of allocation/freeing the tc object specific data. I hope I got it right this time.
* allowing silent rules in buildReuben Hawkins2011-03-161-4/+4
|
* Don't build doc.c, there is no real code in itThomas Graf2010-11-181-1/+1
|
* link: AF_INET link moduleThomas Graf2010-11-161-1/+1
| | | | | | | | Note: The code for this is not upstream yet. Extends the link api to allow address family modules to fill a link message and implements a AF_INET address family link module which uses the new interface.
* link: Add support for IPv6 specific link dataThomas Graf2010-11-111-1/+1
| | | | | - parses IFLA_PROTINFO - dumps flags, cacheinfo, devconf and all statistics
* link: Support for AF_BRIDGE address familyThomas Graf2010-11-111-0/+1
| | | | Supports parsing of IFLA_PROTINFO returned when dumping with PF_BRIDGE
* Support for meta matchThomas Graf2010-10-311-0/+1
| | | | | Syntax: meta(pktlen > 768)
* text ematch supportThomas Graf2010-10-291-1/+1
|
* cgroup classifier improvementsThomas Graf2010-10-291-1/+4
| | | | | | | | | | | - enabled again - ematch support - cli tools module Example: nl-qdisc-add --dev eth0 --parent root --id 1: htb nl-cls-add --dev eth0 --parent 1: --id dead: cgroup nl-class-add --dev eth0 --parent 1: --id 1:<CGROUP> htb --rate 77mbit
* Tons of ematch workThomas Graf2010-10-291-1/+14
| | | | | | | | | | - Fixes a bunch of bugs related to ematches - Adds support for the nbyte ematch - Adds a bison/flex parser for ematch expressions, expressions may look like this: ip.length > 256 && pattern(ip6.src = 3ffe::/16) documenation on syntax follows - adds ematch support to the basic classifier (--ematch EXPR)
* nl-cls-* toolsThomas Graf2010-10-261-2/+4
| | | | cli based tools to add/update/list/delete classifiers
* pfifo/bfifo qdisc support for cli libsThomas Graf2010-10-191-1/+5
|
* classid databaseThomas Graf2010-10-191-1/+1
| | | | | | | | | A database to resolve qdisc/class names to classid values and vice versa. The function rtnl_tc_handle2str() and rtnl_tc_str2handle() will resolve names automatically. A CLI based tool nl-classid-lookup is provided to integrate the database into existing iproute2 scripts.
* nl-qdisc-add toolThomas Graf2010-10-191-0/+10
| | | | | | | | | | | | Adds a cli based tool to add/update/replace qdiscs. This tool requires each qdisc to be supported via a dynamic loadable module in pkglibdir/cli/qdisc/$name.so. So far HTB and blackhole have been implemented. Syntax: nl-qdisc-add --dev eth2 --parent root --id 1: htb --r2q=5 nl-qdisc-add --update-only --dev eth2 --id 1: htb --r2q=10
* - Prepare for 2.1.x treeThomas Graf2010-10-141-4/+1
| | | | - Bump interface number, we will break API in the development tree
* Don't include pktloc_syntax.h in BUILT_SOURCESlibnl2_0Thomas Graf2010-10-131-1/+0
|
* automake: add ${top_builddir}/include to AM_CFLAGSAndreas Bießmann2010-10-131-1/+1
| | | | | | | | | | | 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>
* Put preprocessor definitions in AM_CPPFLAGSMatthew L. Creech2010-10-131-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.
* Packet Location InterfaceThomas Graf2010-07-021-2/+17
|
* libnl: fix automake breakagePatrick McHardy2009-11-101-1/+1
| | | | | | | | 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>
* - Compile with _GNU_SOURCEThomas Graf2009-09-031-2/+2
| | | | - Fixed classifier.c -> cls.c
* build: make use of library dependenciesJan Engelhardt2009-07-051-0/+3
|
* Move to automake-based buildJan Engelhardt2009-06-231-0/+40
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>