Lines Matching refs:target

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