nlmsg_for_each.c

00001 #include <netlink/msg.h>
00002 
00003 struct nlmsghdr *hdr;
00004 
00005 nlmsg_for_each(hdr, stream, length) {
00006         /* do something with message */
00007 }