summaryrefslogtreecommitdiffstats
path: root/tests/test-cache-mngr.c
Commit message (Collapse)AuthorAgeFilesLines
* tests: use thread-safe localtime_r() instead of localtime()Thomas Haller2023-08-181-1/+2
|
* include: use <linux/$file> instead of <linux-private/linux/$file>Thomas Haller2023-08-081-1/+1
| | | | | | As we now copy all linux headers, and we have include/linux-private in our include search path, just include the linux headers as we commonly do.
* include: don't explicitly include headers from "nl-default.h"Thomas Haller2023-08-031-1/+0
|
* include: include private linux headers with explicit pathThomas Haller2023-08-031-1/+1
| | | | | | | We have copies of the linux headers in include/linux-private. For those files, include the copies explicitly. No practice there is no difference, since we build with :-Ilinux-private".
* all: cleanup includes and use "nm-default.h"Thomas Haller2023-08-021-3/+8
|
* lib: move "include/netlink-private/cache-api" to include/nl-shared-coreThomas Haller2023-08-011-2/+0
|
* test-cache-mngr: Flush output after object dumpsBenjamin Poirier2023-07-241-0/+2
| | | | | | Flush stdout after object dumps to have complete and immediate output when stdout is not line buffered, such as when piping the test-cache-mngr output to grep.
* test-cache-mngr: Add option to print timestampsBenjamin Poirier2023-07-241-1/+26
| | | | The format is the same as `ip -ts monitor` so the two can be compared.
* test-cache-mngr: Add an option to iterate over all supported address familiesBenjamin Poirier2023-07-241-5/+20
| | | | | Useful for some caches with multiple families in co_groups, such as the "route/link" cache.
* test-cache-mngr: Add dump interval optionsBenjamin Poirier2023-07-241-7/+45
| | | | | Some problems are related to change callbacks and those are much easier to see when they're not mixed with the cache dump.
* test-cache-mngr: Add an option to control which oo_dump function is usedBenjamin Poirier2023-07-241-11/+49
| | | | Many problems are only apparent when printing at level "details".
* include: don't include kernel headers in public libnl3 headersThomas Haller2017-03-021-0/+2
| | | | | | | | | | | | | | | | | It would be desirable not to include kernel headers in our public libnl3 headers. As a test, remove all those includes, and fix compilation by explicitly including the kernel headers where needed. In some cases, that requires forward declaration for kernel structures, as we use them as part of our own headers. Realistically, we cannot drop those includes as it probalby breaks compilation for users that expect to get a certain kernel header when including a libnl3 header. So, this will not be done and the includes will be restored in the next commit. Do this step to show how it would be and to verify that we could build with such a change. The reason not to do this is backward compatibility (at compile-time).
* 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>
* 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-211-18/+20
|
* test updatesThomas Graf2008-08-201-36/+23
|
* 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.
* Initial importThomas Graf2007-09-141-0/+73