Lines Matching refs:nlattr
13 #include "nlattr.h"
25 static struct nlattr *nla_next(const struct nlattr *nla, int *remaining)
30 return (struct nlattr *)((void *)nla + totlen);
33 static int nla_ok(const struct nlattr *nla, int remaining)
40 static int nla_type(const struct nlattr *nla)
45 static int validate_nla(struct nlattr *nla, int maxtype,
104 int libbpf_nla_parse(struct nlattr *tb[], int maxtype, struct nlattr *head,
107 struct nlattr *nla;
110 memset(tb, 0, sizeof(struct nlattr *) * (maxtype + 1));
149 int libbpf_nla_parse_nested(struct nlattr *tb[], int maxtype,
150 struct nlattr *nla,
164 struct nlattr *tb[NLMSGERR_ATTR_MAX + 1], *attr;
180 attr = (struct nlattr *) ((void *) err + hlen);