Lines Matching refs:nlattr
26 char *nla_get_string(struct nlattr *nla)
32 uint16_t nla_get_u16(struct nlattr *nla)
38 uint32_t nla_get_u32(struct nlattr *nla)
44 uint8_t nla_get_u8(struct nlattr *nla)
50 uint64_t nla_get_u64(struct nlattr *nla)
58 void *nla_data(const struct nlattr *nla)
64 int nla_len(const struct nlattr *nla)
75 struct nlattr *nla_nest_start(struct nl_msg *msg, int attrtype)
77 struct nlattr *start = (struct nlattr *)nlmsg_tail(msg->nm_nlh);
88 int nla_nest_end(struct nl_msg *msg, struct nlattr *start)
97 struct nlattr *nla_next(const struct nlattr *nla, int *remaining)
99 struct nlattr *next_nla = NULL;
100 if (nla->nla_len >= sizeof(struct nlattr) &&
102 next_nla = (struct nlattr *) \
112 int nla_ok(const struct nlattr *nla, int remaining)
115 nla->nla_len >= sizeof(struct nlattr) &&
116 sizeof(struct nlattr) <= (unsigned int) remaining &&
122 int nla_parse(struct nlattr *tb[], int maxtype, struct nlattr *head,
125 struct nlattr *pos;
129 memset(tb, 0, (maxtype + 1) * sizeof(struct nlattr *));
143 int nla_parse_nested(struct nlattr *tb[], int maxtype,
144 struct nlattr *nla, struct nla_policy *policy)
153 struct nlattr *nla;
204 int nla_type(const struct nlattr *nla)
211 struct nlattr *nla_reserve(struct nl_msg *msg, int attrtype, int data_len)
214 struct nlattr *nla;
222 nla = (struct nlattr *)nlmsg_tail(msg->nm_nlh);
231 int nla_memcpy(void *dest, struct nlattr *src, int count)