This repository has been archived on 2022-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
|
#include <netlink/msg.h>
|
|
|
|
void my_parse(void *stream, int length)
|
|
{
|
|
struct nlmsghdr *hdr = stream;
|
|
|
|
while (nlmsg_ok(hdr, length)) {
|
|
// Parse message here
|
|
hdr = nlmsg_next(hdr, &length);
|
|
}
|
|
}
|