Lines Matching refs:nlattr
24 static struct nlattr *nla_next(const struct nlattr *nla, int *remaining) in nla_next()
29 return (struct nlattr *) ((char *) nla + totlen); in nla_next()
32 static int nla_ok(const struct nlattr *nla, int remaining) in nla_ok()
39 static int nla_type(const struct nlattr *nla) in nla_type()
44 static int validate_nla(struct nlattr *nla, int maxtype, in validate_nla()
103 int libbpf_nla_parse(struct nlattr *tb[], int maxtype, struct nlattr *head, in libbpf_nla_parse()
106 struct nlattr *nla; in libbpf_nla_parse()
109 memset(tb, 0, sizeof(struct nlattr *) * (maxtype + 1)); in libbpf_nla_parse()
148 int libbpf_nla_parse_nested(struct nlattr *tb[], int maxtype, in libbpf_nla_parse_nested()
149 struct nlattr *nla, in libbpf_nla_parse_nested()
163 struct nlattr *tb[NLMSGERR_ATTR_MAX + 1], *attr; in libbpf_nla_dump_errormsg()
179 attr = (struct nlattr *) ((void *) err + hlen); in libbpf_nla_dump_errormsg()