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/attr.h>
|
|
|
|
struct nalttr *nla;
|
|
int rem;
|
|
|
|
nla_for_each_attr(nla, attrstream, streamlen, rem) {
|
|
/* validate & parse attribute */
|
|
}
|
|
|
|
if (rem > 0)
|
|
/* unparsed attribute data */
|