summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* lib/route: add macsec supportSabrina Dubroca2016-06-253-0/+49
| | | | Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>
* ipgre: add support for gretap tunnelHaishuang Yan2016-04-153-0/+58
| | | | | | | | | | | | | Since kernel support both gre/gretap tunnel, so add support for gretap appropriately. Signed-off-by: Haishuang Yan <yanhaishuang@cmss.chinamobile.com> Signed-off-by: Thomas Haller <thaller@redhat.com> [thaller@redhat.com: modified original patch to move symbols in libnl-route-3.sym to proper section] http://lists.infradead.org/pipermail/libnl/2016-April/002102.html
* route/link: add macvtap supportBeniamino Galvani2015-11-193-0/+52
| | | | | | | | | This adds support for MAC-VLAN based tap interfaces (macvtap). http://lists.infradead.org/pipermail/libnl/2015-October/001976.html Signed-off-by: Beniamino Galvani <bgalvani@redhat.com> Signed-off-by: Thomas Haller <thaller@redhat.com>
* gitignore: ignore test binaries in "tests/"Thomas Haller2015-11-191-1/+3
| | | | Signed-off-by: Thomas Haller <thaller@redhat.com>
* route/vrf: add VRF supportDavid Ahern2015-11-012-0/+60
| | | | | | | | http://lists.infradead.org/pipermail/libnl/2015-October/001991.html Signed-off-by: David Ahern <dsa@cumulusnetworks.com> [thaller@redhat.com: slightly modified original patch] Signed-off-by: Thomas Haller <thaller@redhat.com>
* ipvlan: add a testcase for ipvlanCong Wang2015-06-192-0/+46
| | | | | Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com> Signed-off-by: Thomas Haller <thaller@redhat.com>
* route/act: add a test case for skbedit actionCong Wang2015-02-021-10/+21
| | | | | Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com> Signed-off-by: Thomas Haller <thaller@redhat.com>
* build: move copy of linux headers to private directoryThomas Haller2014-09-241-0/+1
| | | | | | | | | | | | | | | | | | | libnl3 contains a private copy of some kernel header files. Normally, users are expected to install libnl and specify -I$PREFIX/include/libnl3 as include path. As the private kernel header files are not installed, this works fine. However, it can be convenient to build against the libnl source directory, without installing libnl. In this case, the private kernel header files shaddow the system provided ones. This is undesired. Move these files to a different directory to avoid this clash. http://lists.infradead.org/pipermail/libnl/2014-September/001645.html Signed-off-by: Thomas Haller <thaller@redhat.com> Acked-by: Thomas Graf <tgraf@suug.ch>
* build/trivial: prettify makefiles by wrapping long linesThomas Haller2014-09-241-1/+6
| | | | | Signed-off-by: Thomas Haller <thaller@redhat.com> Acked-by: Thomas Graf <tgraf@suug.ch>
* tests: build test-create-macvlan as part of `make check`Thomas Haller2014-08-183-0/+4
| | | | Signed-off-by: Thomas Haller <thaller@redhat.com>
* link: add ifb device supportCong Wang2014-07-243-0/+32
| | | | | | | | Cc: Thomas Graf <tgraf@suug.ch> Cc: Thomas Haller <thaller@redhat.com> Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com> Acked-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: Thomas Haller <thaller@redhat.com>
* ip6tnl: introduce ip6 tunnel supportSusant Sahani2014-06-163-0/+57
| | | | | | | | This patch adds support for ip6 tunnel that works with the ip6_tunnel kernel module. Signed-off-by: Susant Sahani <susant@redhat.com> Signed-off-by: Thomas Haller <thaller@redhat.com>
* gitignore: ignore test binaries and artifacts in "tests/"Thomas Haller2014-05-061-0/+1
| | | | Signed-off-by: Thomas Haller <thaller@redhat.com>
* ipvti: introduce vti tunnel supportSusant Sahani2014-05-062-0/+56
| | | | | | Signed-off-by: Susant Sahani <susant@redhat.com> [thaller@redhat.com: some whitespace fixes] Signed-off-by: Thomas Haller <thaller@redhat.com>
* introduce sit tunnel supportSusant Sahani2014-05-053-0/+58
| | | | | | | | | This patch introduces sit tunnel support Signed-off-by: Susant Sahani <susant@redhat.com> Acked-by: Thomas Graf <tgraf@suug.ch> [thaller@redhat.com: change WS to TAB, fix code doc] Signed-off-by: Thomas Haller <thaller@redhat.com>
* introduce gre tunnel supportSusant Sahani2014-05-053-0/+58
| | | | | | | | | This patch introduces gre tunnel support Signed-off-by: Susant Sahani <susant@redhat.com> Acked-by: Thomas Graf <tgraf@suug.ch> [thaller@redhat.com: change WS to TAB, fix code doc] Signed-off-by: Thomas Haller <thaller@redhat.com>
* introduce ipip tunnel supportSusant Sahani2014-05-053-0/+58
| | | | | | | | | | This patch introduces ipip tunnel support. This works with kernel module ipip. Signed-off-by: Susant Sahani <susant@redhat.com> Acked-by: Thomas Graf <tgraf@suug.ch> [thaller@redhat.com: change WS to TAB, fix code doc] Signed-off-by: Thomas Haller <thaller@redhat.com>
* gitignore: ignore test binaries and artifacts in "tests/"Thomas Haller2014-05-051-9/+18
| | | | Signed-off-by: Thomas Haller <thaller@redhat.com>
* veth: grab a reference for rtnl_link_veth_get_peer()Cong Wang2014-04-301-0/+1
| | | | | | | | So that users could keep a refcount for the peer. The capability trick is from Thomas Haller. Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com> Signed-off-by: Thomas Haller <thaller@redhat.com>
* rename rtnl_mirred_set_index() to rtnl_mirred_set_ifindex()Cong Wang2013-12-091-1/+1
| | | | | Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com> Signed-off-by: Thomas Graf <tgraf@suug.ch>
* add a parameter to rtnl_link_veth_add()Cong Wang2013-12-091-1/+1
| | | | | | | | Usually the peer of a veth device is moved to a new netns after creation, so add a pid parameter to rtnl_link_veth_add(). Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com> Signed-off-by: Thomas Graf <tgraf@suug.ch>
* add u32 action testCong Wang2013-11-092-0/+402
| | | | Signed-off-by: Thomas Graf <tgraf@suug.ch>
* add veth link supportCong Wang2013-11-062-0/+43
| | | | | Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com> Signed-off-by: Thomas Graf <tgraf@suug.ch>
* tests: fix make test-create-vxlanCong Wang2013-10-301-0/+2
| | | | | | Cc: Thomas Graf <tgraf@suug.ch> Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com> Signed-off-by: Thomas Graf <tgraf@suug.ch>
* test: add bridge creation sampleNicolas PLANEL2013-10-222-0/+82
| | | | | | | | New test sample file, test-create-bridge.c Create an bridge (testbrige) and attach an already setup interface (testtap1) to it. Signed-off-by: Nicolas PLANEL <nicolas.planel@enovance.com> Signed-off-by: Thomas Graf <tgraf@suug.ch>
* Add VXLAN support.Yasunobu Chiba2013-08-041-0/+47
|
* tests: use AM_CFLAGS instead of CFLAGS directlyThomas Graf2013-06-281-1/+1
| | | | Signed-off-by: Thomas Graf <tgraf@suug.ch>
* Add macvlan supportMichael Braun2013-05-161-0/+48
| | | | | | This patch add support for kernel macvlan interfaces. Signed-off-by: Michael Braun <michael-dev@fami-braun.de>
* tests: Include util.h in distThomas Graf2013-04-281-0/+3
| | | | Signed-off-by: Thomas Graf <tgraf@suug.ch>
* tests: Add basic attribute unit testsThomas Graf2013-04-284-1/+97
| | | | Signed-off-by: Thomas Graf <tgraf@suug.ch>
* tests: Make unit test building optionalThomas Graf2013-04-271-0/+3
| | | | Signed-off-by: Thomas Graf <tgraf@suug.ch>
* tests: Add check based unit test systemThomas Graf2013-03-144-6/+271
| | | | | | | | | | | | | Introduces new unit tests based on `check`. Each subsystem/module can have its own unit tests in tests/check-<name>.c that will be linked together in tests/check-all.c. Running 'make check' will compile and run the unit tests automatically. A reference unit test implementation has been done for the abstract address module. Signed-off-by: Thomas Graf <tgraf@suug.ch>
* bond: Provide rtnl_link_bond_alloc()Thomas Graf2013-02-141-6/+2
| | | | Signed-off-by: Thomas Graf <tgraf@suug.ch>
* vlan: Provide rtnl_link_vlan_alloc()Thomas Graf2013-02-141-6/+1
| | | | Signed-off-by: Thomas Graf <tgraf@suug.ch>
* Fix test-cache-mngr testThomas Graf2013-01-241-0/+2
| | | | | | | Needs to include <netlink-private/cache-api.h> Reported-by: Jeroen Roovers <jer@gentoo.org> Signed-off-by: Thomas Graf <tgraf@suug.ch>
* Fix make check when using --disable-cliGilles Espinasse2012-12-051-4/+8
| | | | | Signed-off-by: Gilles Espinasse <g.esp@free.fr> Signed-off-by: Thomas Graf <tgraf@suug.ch>
* genl: modify genl_ctrl_resolve and friends to allow for module auto-loadingNeil Horman2012-06-031-0/+3
| | | | | | | | | | | | Generic netlink has the ability to autoload modules in response to a request for a family. Currently libnl uses a GETFAMILY call with the NLM_F_DUMP flag to list all the available families, but doing so neglects the possibility of an autoloaded module. This patch modifies the genl code to probe the kernel for a specific family rather than dumping a list of all the currenlty available ones, making autoload work properly. Signed-off-by: Neil Horman <nhorman@tuxdriver.com> CC: Thomas Graf <tgraf@redhat.com>
* genl: Support registration of families without depending on cachesThomas Graf2012-06-011-4/+83
| | | | | | | | | | | | Introduces the functions genl_register_family() and genl_unregister_family() to register a Generic Netlink family which does not implement a cachable type. API users can direct received messages into genl_handle_msg() which will validate the messages and call the callback functions defined in the commands definition. See test/test-genl.c for an example on how to use it.
* u32: fix various u32 hashing related warningsAdrian Ban2012-05-161-35/+43
| | | | | I've add an missing u32 hash filter missing from u32.h I've fix all warnings in file test-complex-HTB-with-hash-filters.c
* u32: example/test code for u32 hashing with HTBAdrian Ban2012-05-083-1/+760
|
* test-cache-mngr: Allow for management of arbitary caches via argument stringThomas Graf2012-04-211-23/+17
| | | | | | | | Let the user specify a list of cache types to add to the manager as arguments instead of adding a static list. Uses the newly added nl_cache_mngr_info() to constantly print information about the manager.
* test-cache-mngr: Let the cache manager allocate the socketThomas Graf2012-04-211-4/+1
|
* tests: fix test programs to compile againThomas Graf2012-04-215-45/+49
|
* tests: Convert tests/Makefile to use automakeThomas Graf2012-04-212-33/+31
|
* 3.1 releaseThomas Graf2011-08-114-9/+114
|
* - Reworked the classifier interface.Thomas Graf2009-09-021-1/+1
| | | | | | - Added initial ematch support - Added support for the basic classifier - Added support for the cgroup classifier
* Remove obsoleted struct nl_handle definitionThomas Graf2008-12-101-1/+1
|
* test updatesThomas Graf2008-08-204-82/+47
|
* Free associated caches when freeing cache managerThomas Graf2008-02-051-2/+13
| | | | | | Caches allocated by the cache manager must be freed again when the cache manager itself is freed. However, the netlink socket is allocated indepdently so it should not be freed.
* Tell git to ignore temporary files and push to pre9Thomas Graf2008-01-091-0/+4
|