Send multicast generic netlink message from userspace

Thomas Graf tgraf at infradead.org
Mon Nov 15 18:13:31 EST 2010


On Mon, Nov 15, 2010 at 03:14:49PM -0500, Veytser, Leonid - 0665 - MITLL wrote:
> Thomas, thanks for your reply. Your suggestion worked great.
> 
> I have a follow up question. What are the userspace equivalents of these functions?
> 
> genl_register_family
> genl_register_ops
> genl_register_mc_group
> 
> libnl seems to provide a way to resolve a custom genetic netlink family that was registered by a kernel module but is there a way to actually define a custom family/mc group from userspace?

Yes there is although the API isn't developed very far yet:

http://www.infradead.org/~tgr/libnl/doc-2.0/group__genl__mngt.html

If you refer to genl_ctrl_resolve(), that is an API to the kernel
controller interface which allows resolving the name of a genl
family to the identifier in the kernel.



More information about the libnl mailing list