summaryrefslogtreecommitdiffstats
path: root/tests/test-genl.c
Commit message (Collapse)AuthorAgeFilesLines
* 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