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>
|
|
#include <netlink/attr.h>
|
|
|
|
struct nlattr *hdr = nlmsg_attrdata(msg, 0);
|
|
int remaining = nlmsg_attrlen(msg, 0);
|
|
|
|
while (nla_ok(hdr, remaining)) {
|
|
/* parse attribute here */
|
|
hdr = nla_next(hdr, &remaining);
|
|
};
|