Lines Matching defs:npt

79 npt_alloc(struct nl_pstate *npt, int len)
81 return (lb_alloc(&npt->lb, len));
86 typedef int parse_field_f(void *hdr, struct nl_pstate *npt, void *target);
94 int nlf_get_ifp(void *src, struct nl_pstate *npt, void *target);
95 int nlf_get_ifpz(void *src, struct nl_pstate *npt, void *target);
96 int nlf_get_u8(void *src, struct nl_pstate *npt, void *target);
97 int nlf_get_u16(void *src, struct nl_pstate *npt, void *target);
98 int nlf_get_u32(void *src, struct nl_pstate *npt, void *target);
99 int nlf_get_u8_u32(void *src, struct nl_pstate *npt, void *target);
102 typedef int parse_attr_f(struct nlattr *attr, struct nl_pstate *npt,
111 typedef bool strict_parser_f(void *hdr, struct nl_pstate *npt);
112 typedef bool post_parser_f(void *parsed_attrs, struct nl_pstate *npt);
170 const struct nlattr_parser *ps, u_int pslen, struct nl_pstate *npt,
173 int nlattr_get_flag(struct nlattr *nla, struct nl_pstate *npt,
175 int nlattr_get_ip(struct nlattr *nla, struct nl_pstate *npt,
177 int nlattr_get_bool(struct nlattr *nla, struct nl_pstate *npt,
179 int nlattr_get_uint8(struct nlattr *nla, struct nl_pstate *npt,
181 int nlattr_get_uint16(struct nlattr *nla, struct nl_pstate *npt,
183 int nlattr_get_uint32(struct nlattr *nla, struct nl_pstate *npt,
185 int nlattr_get_uint64(struct nlattr *nla, struct nl_pstate *npt,
187 int nlattr_get_in_addr(struct nlattr *nla, struct nl_pstate *npt,
189 int nlattr_get_in6_addr(struct nlattr *nla, struct nl_pstate *npt,
191 int nlattr_get_ifp(struct nlattr *nla, struct nl_pstate *npt,
193 int nlattr_get_ifpz(struct nlattr *nla, struct nl_pstate *npt,
195 int nlattr_get_ipvia(struct nlattr *nla, struct nl_pstate *npt,
197 int nlattr_get_chara(struct nlattr *nla, struct nl_pstate *npt,
199 int nlattr_get_string(struct nlattr *nla, struct nl_pstate *npt,
201 int nlattr_get_stringn(struct nlattr *nla, struct nl_pstate *npt,
203 int nlattr_get_bytes(struct nlattr *nla, struct nl_pstate *npt,
205 int nlattr_get_nla(struct nlattr *nla, struct nl_pstate *npt,
207 int nlattr_get_nested(struct nlattr *nla, struct nl_pstate *npt,
209 int nlattr_get_nested_ptr(struct nlattr *nla, struct nl_pstate *npt,
212 bool nlmsg_report_err_msg(struct nl_pstate *npt, const char *fmt, ...);
219 bool nlmsg_report_err_offset(struct nl_pstate *npt, uint32_t off);
221 void nlmsg_report_cookie(struct nl_pstate *npt, struct nlattr *nla);
222 void nlmsg_report_cookie_u32(struct nl_pstate *npt, uint32_t val);
230 struct nl_pstate *npt, void *target)
237 if (npt->strict) {
238 nlmsg_report_err_msg(npt,
248 tmp_hdr = npt_alloc(npt, parser->nl_hdr_off);
256 if (npt->strict && parser->sp != NULL && !parser->sp(hdr, npt))
265 error = fp->cb(src, npt, dst);
272 len - parser->nl_hdr_off, parser->np, parser->np_size, npt, target);
275 if (!parser->post_parse(target, npt))
284 struct nl_pstate *npt, void *target)
287 NLA_DATA_LEN(nla), parser->np, parser->np_size, npt, target));
320 struct nl_pstate *npt, void *target)
323 npt, target));