| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
| |
|
|
|
|
| |
Hopefully more to come, and more to improve.
|
|
|
|
|
| |
Add functions for matching a route. Currently only a few trivial options
are supported, like the destination address and the ifindex.
|
|
|
|
|
| |
In CI, we know which tests should be skipped. Let github actions set
NLTST_IN_CI=1, and disable certain skip checks.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
For no strong reason, we include the public netlink headers with
<> instead of "". Be consistent.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
We have "include/netlink-private/netlink.h", which is private
API used internally.
However, it's confusing where "include/netlink-private/netlink.h" can be
used. For example, it contains some "libnl-route-3.so" specific
extensions like "link_lookup()", hence you would think that it
can only be used with libraries that also use "libnl-route-3.so".
Well, since it's a header, you actually can also use it for example
under "lib/xfrm/", you couldn't just use those declarations because they
are implemented and accessible only under "lib/route/"
In a first step to clean this up, and move helper to separate headers,
add "include/nl-aux-{core,route}" headers with certain clear usage.
Clear in the sense who may use those headers, and what the
implementation of those headers may use.
|
|
|
|
|
|
|
|
|
|
| |
"base/nl-base-utils.h" (formerly "netlink-private/utils.h") contains
no libnl3 specific references, just a bunch of C helpers.
It's also a header-only "library", so it can be freely used by all our
C-code.
Move it to a separate directory, to make that clear.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
We run the unit tests as non-root user, so usually we wouldn't have
CAP_NET_ADMIN permissions to change networking. Also, we wouldn't want
that our unit tests depend on the networking of the test host (or
changes it).
For each test, enter a new network namespace (and user/mnt namespace).
There we will have the necessary permissions, and we are in full control
of the things in the namespace.
Note yet used.
|
|
- 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.
|