1 2 3 4 5 6 7
#include <netlink/msg.h> struct nlmsghdr *hdr; nlmsg_for_each(hdr, stream, length) { /* do something with message */ }