8 lines
122 B
C
8 lines
122 B
C
|
#include <netlink/msg.h>
|
||
|
|
||
|
struct nlmsghdr *hdr;
|
||
|
|
||
|
nlmsg_for_each(hdr, stream, length) {
|
||
|
/* do something with message */
|
||
|
}
|