newbie looking for libnl-gen examples

Matthew Monaco matt at 0x01b.net
Sun Nov 11 03:59:17 EST 2012


Hello,

I'm new to Netlink sockets in both kernel and userspace. It's easy enough to
find kernel side code to work off of, but I'm having trouble finding *any*
examples of userspace code using libnl for generic sockets. The documentation on
the libnl page is good, but it would be nice to have examples of a libnl-gen
program.

At the moment I'm trying to understand why the attributes / policy types differ
in both kernel space and user space. Am I supposed to redefine the policy on
each end? Is there no way to get the policy array in the same way that the
family struct can be queried?

Thanks!



More information about the libnl mailing list