Lines Matching refs:target

126     struct nl_pstate *npt, void *target)
146 void *ptr = (void *)((char *)target + s->off);
197 nlattr_get_flag(struct nlattr *nla, struct nl_pstate *npt, const void *arg, void *target)
205 *((uint8_t *)target) = 1;
261 nlattr_get_ip(struct nlattr *nla, struct nl_pstate *npt, const void *arg, void *target)
267 *((struct sockaddr **)target) = sa;
305 nlattr_get_ipvia(struct nlattr *nla, struct nl_pstate *npt, const void *arg, void *target)
311 *((struct sockaddr **)target) = sa;
316 nlattr_get_bool(struct nlattr *nla, struct nl_pstate *npt, const void *arg, void *target)
323 *((bool *)target) = *((const bool *)NL_RTA_DATA_CONST(nla));
328 nlattr_get_uint8(struct nlattr *nla, struct nl_pstate *npt, const void *arg, void *target)
335 *((uint8_t *)target) = *((const uint8_t *)NL_RTA_DATA_CONST(nla));
340 nlattr_get_uint16(struct nlattr *nla, struct nl_pstate *npt, const void *arg, void *target)
347 *((uint16_t *)target) = *((const uint16_t *)NL_RTA_DATA_CONST(nla));
352 nlattr_get_uint32(struct nlattr *nla, struct nl_pstate *npt, const void *arg, void *target)
359 *((uint32_t *)target) = *((const uint32_t *)NL_RTA_DATA_CONST(nla));
364 nlattr_get_uint64(struct nlattr *nla, struct nl_pstate *npt, const void *arg, void *target)
371 memcpy(target, NL_RTA_DATA_CONST(nla), sizeof(uint64_t));
376 nlattr_get_in_addr(struct nlattr *nla, struct nl_pstate *npt, const void *arg, void *target)
383 memcpy(target, NLA_DATA_CONST(nla), sizeof(in_addr_t));
388 nlattr_get_in6_addr(struct nlattr *nla, struct nl_pstate *npt, const void *arg, void *target)
395 memcpy(target, NLA_DATA_CONST(nla), sizeof(struct in6_addr));
401 void *target, bool zero_ok)
411 *((struct ifnet **)target) = NULL;
423 *((struct ifnet **)target) = ifp;
431 nlattr_get_ifp(struct nlattr *nla, struct nl_pstate *npt, const void *arg, void *target)
433 return (nlattr_get_ifp_internal(nla, npt, target, false));
437 nlattr_get_ifpz(struct nlattr *nla, struct nl_pstate *npt, const void *arg, void *target)
439 return (nlattr_get_ifp_internal(nla, npt, target, true));
443 nlattr_get_chara(struct nlattr *nla, struct nl_pstate *npt, const void *arg, void *target)
455 strncpy((char *)target, (char *)NLA_DATA(nla), target_size);
460 nlattr_get_string(struct nlattr *nla, struct nl_pstate *npt, const void *arg, void *target)
470 *((char **)target) = (char *)NLA_DATA(nla);
475 nlattr_get_stringn(struct nlattr *nla, struct nl_pstate *npt, const void *arg, void *target)
485 *((char **)target) = buf;
490 nlattr_get_bytes(struct nlattr *nla, struct nl_pstate *npt, const void *arg, void *target)
497 memcpy(target, NLA_DATA(nla), size);
503 nlattr_get_nla(struct nlattr *nla, struct nl_pstate *npt, const void *arg, void *target)
506 *((struct nlattr **)target) = nla;
511 nlattr_get_nested(struct nlattr *nla, struct nl_pstate *npt, const void *arg, void *target)
516 /* Assumes target points to the beginning of the structure */
517 error = nl_parse_header(NLA_DATA(nla), NLA_DATA_LEN(nla), p, npt, target);
522 nlattr_get_nested_ptr(struct nlattr *nla, struct nl_pstate *npt, const void *arg, void *target)
527 /* Assumes target points to the beginning of the structure */
528 error = nl_parse_header(NLA_DATA(nla), NLA_DATA_LEN(nla), p, npt, *(void **)target);
533 nlf_get_ifp(void *src, struct nl_pstate *npt, void *target)
544 *((struct ifnet **)target) = ifp;
550 nlf_get_ifpz(void *src, struct nl_pstate *npt, void *target)
561 *((struct ifnet **)target) = ifp;
567 nlf_get_u8(void *src, struct nl_pstate *npt, void *target)
571 *((uint8_t *)target) = val;
577 nlf_get_u8_u32(void *src, struct nl_pstate *npt, void *target)
579 *((uint32_t *)target) = *((const uint8_t *)src);
584 nlf_get_u16(void *src, struct nl_pstate *npt, void *target)
586 *((uint16_t *)target) = *((const uint16_t *)src);
591 nlf_get_u32(void *src, struct nl_pstate *npt, void *target)
593 *((uint32_t *)target) = *((const uint32_t *)src);