summaryrefslogtreecommitdiffstats
path: root/Makefile.am
Commit message (Collapse)AuthorAgeFilesLines
* build: avoid building check-direct with --disable-staticThomas Haller2022-04-151-0/+2
| | | | | | | | | | | "check-direct" needs to statically link with the libraries, because it wants to test internal ABI, which is hidden in the share libraries. When configuring with "--disable-static", static libs are not build and the test tool cannot be build. Just skip the test in that case. https://github.com/thom311/libnl/issues/306
* tests: add new "netns" test suiteThomas Haller2022-03-161-1/+2
| | | | | This suite has fixture/teardown which creates a new netns for the test. No tests implemented yet.
* tests: refactor tests and add n-test-util helper libraryThomas Haller2022-03-161-12/+32
| | | | | | | | | | | | | | - we have "check-all.c" and "check-direct.c", which contains the main functions of the actual tests. On the other hand, the other "check-{addr,attr,ematch-tree-clone}.c" files only contained the test suites for "check-all.c". Rename the latter to have a separate name prefix. - rename "tests/util.h" to "tests/cksuite-all.h". It's really the header that declares all the suites. - add a "tests/nl-test-util.c" as a static helper library with test code.
* build: add "check-progs" make target to build unit testsThomas Haller2022-03-161-0/+8
|
* route/cls: add flower classifierVolodymyr Bendiuga2022-03-151-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds a subset of functions. Implemented api: rtnl_flower_set_proto; rtnl_flower_get_proto; rtnl_flower_set_vlan_id; rtnl_flower_get_vlan_id; rtnl_flower_set_vlan_prio; rtnl_flower_get_vlan_prio; rtnl_flower_set_vlan_ethtype; rtnl_flower_set_dst_mac; rtnl_flower_get_dst_mac; rtnl_flower_set_src_mac; rtnl_flower_get_src_mac; rtnl_flower_set_ip_dscp; rtnl_flower_get_ip_dscp; rtnl_flower_set_flags; rtnl_flower_append_action; rtnl_flower_del_action; rtnl_flower_get_action; [thaller@redhat.com: squashed commit "route:cls:flower: use parentheses in macro definitions"] [thaller@redhat.com: squashed commit "cls:flower: add TCA_FLOWER_FLAGS to flower_policy"] [thaller@redhat.com: squashed commit "cls:flower: vlan priority is uint8_t, not uint16_t"] [thaller@redhat.com: squashed commit "route:cls:flower: substitute nl_data* with uint8_t mac[ETH_ALEN]"] [thaller@redhat.com: drop non-existing TCA_FLOWER_POLICE. That was never merged to upstream kernel. While at it, use decimal numbers for the bitshift.] [thaller@redhat.com: fix build by including <linux/if_ether.h> in "types.h".] Signed-off-by: Volodymyr Bendiuga <volodymyr.bendiuga@westermo.se>
* build: sort file names in Makefile.amThomas Haller2022-03-141-2/+2
|
* mdb: support bridge multicast database notificationRubens Figueiredo2022-03-141-0/+3
| | | | | | | | | | | The Linux kernel has a notification system via Netlink that reports the changes in the multicast database over the RTNLGRP_MDB multicast socket. As such notifications such as RTM_NEWMDB, RTM_GETMDB can be processed in userspace. libnl must support the capability of processing these messages, e.g. RTM_GETMDB. This commit adds a new rtnl_mdb object as well as a route/mdb cache, in order to expose the contents of the multicast database.
* ip6vti: Add IPv6 VTI supportThomas Winter2022-03-111-0/+2
| | | | | | | This patch adds support for IPv6 VTI tunneling that uses the vti6 kernel module. Signed-off-by: Thomas Winter <Thomas.Winter@alliedtelesis.co.nz>
* build: sort files in Makefile.amThomas Haller2022-03-101-4/+4
|
* route/link: add support for team deviceJonas Johansson2022-03-101-0/+2
| | | | Signed-off-by: Jonas Johansson <jonas.johansson@westermo.se>
* route/link: Add IPv6 GRE supportScott Parlane2022-03-091-0/+2
| | | | | | | This patch adds support for IPv6 GRE tunneling that uses the ip6_gre kernel module. https://github.com/thom311/libnl/pull/255
* tests: add "check-direct" testThomas Haller2020-04-161-0/+25
| | | | | | | We already have check-all unit test, which links dynamically to the libraries. That means, certain symbols won't be accessible, because they are hidden by the linker symbol versioning file. Add "check-direct", which links statically against the libraries.
* route: add "netlink-private/route/utils.h" headerThomas Haller2020-04-161-0/+1
|
* lib: add "include/netlink-private/nl-auto.h" headerThomas Haller2020-04-151-0/+1
|
* xfrmi: introduce XFRM interfaces supportEyal Birger2019-09-011-0/+5
| | | | | | | XFRM interfaces were introduced in kernel 4.19. This commit adds link support for these interfaces. Signed-off-by: Eyal Birger <eyal.birger@gmail.com>
* Sync linux headers to 4.19.66Michael Forney2019-08-261-1/+0
| | | | | | | | | | | | | | | | | | | This fixes the build with musl libc. Additionally, several changes were made to account for changes to the headers: - ip_mp_alg.h was removed, since it was removed in linux commit e06e7c61 (v2.6.23), and the last use of those constants was removed in libnl commit 535e8316. - Uses of TCF_META_ID_SK_ROUTE_CAPS were updated to __TCF_META_ID_SK_ROUTE_CAPS, since it was renamed in linux commit e20e6940 (v3.1). - Uses of IF_CARRIER_DOWN and IF_CARRIER_UP were replaced with their values, 0 and 1, since they are not in linux/if.h (they appear to be libnl-specific, added in libnl commit 3540e44b). https://github.com/thom311/libnl/pull/222
* all: Avoid pointer arithmetic on `void *`Michael Forney2019-08-161-0/+1
| | | | | | | ISO C requires that the pointer operand to the binary + operator be to a complete object type[0]. [0] http://port70.net/~nsz/c/c11/n1570.html#6.5.6p2
* route:act: add vlan actionVolodymyr Bendiuga2018-10-101-0/+2
| | | | | | | For more information please see: http://man7.org/linux/man-pages/man8/tc-vlan.8.html Signed-off-by: Volodymyr Bendiuga <volodymyr.bendiuga@westermo.se>
* include: import tc_vlan.hVolodymyr Bendiuga2018-10-101-0/+1
| | | | Signed-off-by: Volodymyr Bendiuga <volodymyr.bendiuga@westermo.se>
* build: cleanup Makefile.amThomas Haller2018-10-081-52/+82
| | | | | Sort files asciibetically and add $(NULL) sentinel to Makefile lines.
* route:qdisc: add MQPRIO QdiscVolodymyr Bendiuga2018-07-261-0/+2
| | | | | | | More about Qdisc mqprio can be found at: http://man7.org/linux/man-pages/man8/tc-mqprio.8.html Signed-off-by: Volodymyr Bendiuga <volodymyr.bendiuga@westermo.se>
* Add support for cloning cgroup filter object.d0u92018-06-251-1/+2
| | | | | | | | | | | In this commit, we implement ematch_tree_clone(), which is basis of cgroup_clone() interface. The whole ematch tree is deep-copied except the e_ops filed. Also, a new unit test is added for testing the interface, which named as check-ematch-tree-clone.c located in tests directory. https://github.com/thom311/libnl/pull/176
* route:cls: add matchall classifierVolodymyr Bendiuga2018-04-111-1/+3
| | | | | | | This simple classifier allows any traffic pass through. Useful as an example for port mirroring. Signed-off-by: Volodymyr Bendiuga <volodymyr.bendiuga@westermo.se>
* build: sort entries in Makefile.am and .gitignore by nameThomas Haller2018-04-061-22/+24
|
* add demo program for listen conntrack eventsLukáš Karas2018-04-061-0/+3
|
* lib/rtnl: rename public define RTNL_GENEVE_ID_MAXThomas Haller2018-02-121-2/+2
| | | | | Public defines must have a libnl3 related prefix. Rename GENEVE_ID_MAX to RTNL_GENEVE_ID_MAX.
* link: add Geneve support.Wang Jian2018-02-121-1/+6
| | | | Signed-off-by: Wang Jian <jianjian.wang1@gmail.com>
* tests: Add test to {de}activate loopback interfaceMarcos Paulo de Souza2018-01-161-1/+4
| | | | | | | | | | This tests is much more like an example of how to do it, and also works as a test to check if rtnl_link_change is working as expected when it comes to loopback interface. Signed-off-by: Marcos Paulo de Souza <marcos.souza.org@gmail.com> https://github.com/thom311/libnl/pull/161
* build: add missing headers for issue #152Jeroen Roovers2017-09-211-1/+4
| | | | | | | Also, sort all headers. https://github.com/thom311/libnl/issues/152 https://github.com/thom311/libnl/pull/153
* build: add new include/netlink-private/route/*.h files to Makefile.amThomas Haller2017-08-181-0/+2
|
* route: Add support for MPLS encapDavid Ahern2017-08-181-0/+1
| | | | | | Add support for MPLS lwtunnel encapsulation. Signed-off-by: David Ahern <dsahern@gmail.com>
* route: Add support for lwtunnel encapsulationsDavid Ahern2017-08-181-0/+1
| | | | | | | | | | Add framework to support lwtunnel encapsulations per nexthop. Encapsulations types are expected to fill in the nh_encap_ops for building and parsing messages, compare encapsulations in routes, dumping the encapsulations and freeing memory. Signed-off-by: David Ahern <dsahern@gmail.com>
* addr: Add implementations for mpls_ntop and mpls_ptonDavid Ahern2017-08-181-1/+2
| | | | | | Implementations of mpls_ntop and mpls_pton taken from iproute2. Signed-off-by: David Ahern <dsahern@gmail.com>
* build: add include/linux-private/linux/mpls.h to Makefile.amThomas Haller2017-08-181-0/+1
|
* build: don't build cli libraries by defaultThomas Haller2017-05-121-1/+1
| | | | | | | | | | | When configuring with --enable-cli=no, we should not build the libraries related the cli. This fixes commit 3cb2853 (build: enable building cli during tests) which enables building of cli during `make check`. However, during regular build, these libraries should not get build. Signed-off-by: Thomas Haller <thaller@redhat.com>
* route: Add support for netconfDavid Ahern2017-05-121-0/+2
| | | | | | | | | | | | Add route/netconf cache type to monitor RTM_*NETCONF messages. v2 - change get methods to return 0/error and take 'int *val' which is set to the value requested Signed-off-by: David Ahern <dsa@cumulusnetworks.com> Signed-off-by: Balakrishnan Raman <ramanb@cumulusnetworks.com> Signed-off-by: Thomas Haller <thaller@redhat.com>
* build: fix creating directories for generated sourcesThomas Haller2017-02-271-4/+4
| | | | Fixes: a572196366cfc1938596052f8e16121d0d374164
* build: pass --disable-dependency-tracking to `make distcheck`Thomas Haller2017-02-271-0/+3
|
* build: ensure build directory for generated sources existThomas Haller2017-02-271-8/+8
| | | | | | For out-of-tree builds, we must ensure that the build directory for the generated sources exists. We do that by adding a dependency to the .dirstamp file.
* build: enable more warningsThomas Haller2017-02-271-1/+6
|
* all: enable -Wmissing-prototype warning for all componentsThomas Haller2017-02-271-2/+2
|
* build: move compiler warning flags to separate autoconf variableThomas Haller2017-02-271-4/+7
|
* build: enable building cli during testsThomas Haller2017-02-271-6/+15
| | | | | | The cli programs don't have any additional external dependencies. So, during a `make check`, we should always build them, even if they were disabled during configure and won't be installed.
* build: merge src/Makefile.am into top-level makefileThomas Haller2017-02-271-7/+175
|
* build: merge src/lib/Makefile.am into top-level makefileThomas Haller2017-02-271-5/+51
|
* build: merge tests/Makefile.am into top-level makefileThomas Haller2017-02-271-2/+128
|
* build: merge python/Makefile.am into top-level makefileThomas Haller2017-02-271-1/+39
|
* build: merge man/Makefile.am into top-level makefileThomas Haller2017-02-271-1/+10
|
* build: merge lib/Makefile.am into top-level makefileThomas Haller2017-02-271-2/+302
|
* build: merge include/Makefile.am into top-level makefileThomas Haller2017-02-271-2/+210
|