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