Lines Matching refs:hints

48 	const struct zsock_addrinfo *hints;  member
94 if (state->hints) { in dns_resolve_cb()
95 if (state->hints->ai_socktype) { in dns_resolve_cb()
96 socktype = state->hints->ai_socktype; in dns_resolve_cb()
182 static int getaddrinfo_null_host(int port, const struct zsock_addrinfo *hints, in getaddrinfo_null_host() argument
185 if (!hints || !(hints->ai_flags & AI_PASSIVE)) { in getaddrinfo_null_host()
190 if (hints->ai_family == AF_INET || hints->ai_family == AF_UNSPEC) { in getaddrinfo_null_host()
197 } else if (hints->ai_family == AF_INET6) { in getaddrinfo_null_host()
208 if (hints->ai_socktype == SOCK_DGRAM) { in getaddrinfo_null_host()
219 const struct zsock_addrinfo *hints, in z_impl_z_zsock_getaddrinfo_internal() argument
229 if (hints) { in z_impl_z_zsock_getaddrinfo_internal()
230 family = hints->ai_family; in z_impl_z_zsock_getaddrinfo_internal()
231 ai_flags = hints->ai_flags; in z_impl_z_zsock_getaddrinfo_internal()
259 return getaddrinfo_null_host(port, hints, res); in z_impl_z_zsock_getaddrinfo_internal()
262 ai_state.hints = hints; in z_impl_z_zsock_getaddrinfo_internal()
311 const struct zsock_addrinfo *hints, in z_vrfy_z_zsock_getaddrinfo_internal() argument
318 if (hints) { in z_vrfy_z_zsock_getaddrinfo_internal()
319 K_OOPS(k_usermode_from_copy(&hints_copy, (void *)hints, in z_vrfy_z_zsock_getaddrinfo_internal()
341 hints ? &hints_copy : NULL, in z_vrfy_z_zsock_getaddrinfo_internal()
356 const struct zsock_addrinfo *hints, in try_resolve_literal_addr() argument
370 if (hints) { in try_resolve_literal_addr()
371 family = hints->ai_family; in try_resolve_literal_addr()
372 if (hints->ai_socktype == SOCK_DGRAM) { in try_resolve_literal_addr()
433 const struct zsock_addrinfo *hints, in zsock_getaddrinfo() argument
437 return socket_offload_getaddrinfo(host, service, hints, res); in zsock_getaddrinfo()
452 ret = try_resolve_literal_addr(host, service, hints, *res); in zsock_getaddrinfo()
458 ret = z_zsock_getaddrinfo_internal(host, service, hints, *res); in zsock_getaddrinfo()