summaryrefslogtreecommitdiffstats
path: root/tests/test-genl.c
Commit message (Collapse)AuthorAgeFilesLines
* tests: use nl_send_auto() instead of deprecated nl_send_auto_complete() in ↵Byeonggon Lee2019-08-071-1/+1
| | | | | | test-genl.c https://github.com/thom311/libnl/pull/213
* 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).
* 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.
* tests: fix test programs to compile againThomas Graf2012-04-211-8/+8
|
* test updatesThomas Graf2008-08-201-39/+19
|
* Initial importThomas Graf2007-09-141-0/+56