/Zephyr-latest/samples/net/cloud/tagoio_http_post/src/ |
D | sockets.c | 38 struct addrinfo hints; in tagoio_connect() local 44 memset(&hints, 0, sizeof(hints)); in tagoio_connect() 46 hints.ai_socktype = SOCK_STREAM; in tagoio_connect() 47 hints.ai_protocol = IPPROTO_TCP; in tagoio_connect() 49 hints.ai_family = AF_INET6; in tagoio_connect() 51 hints.ai_family = AF_INET; in tagoio_connect() 56 ret = getaddrinfo(TAGOIO_SERVER, port, &hints, &addr); in tagoio_connect() 74 ctx->sock = socket(hints.ai_family, in tagoio_connect() 75 hints.ai_socktype, in tagoio_connect() 76 hints.ai_protocol); in tagoio_connect()
|
/Zephyr-latest/subsys/net/lib/sockets/ |
D | getaddrinfo.c | 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 [all …]
|
D | socket_offload.c | 26 const struct zsock_addrinfo *hints, in socket_offload_getaddrinfo() argument 32 return dns_offload->getaddrinfo(node, service, hints, res); in socket_offload_getaddrinfo()
|
/Zephyr-latest/subsys/net/lib/sntp/ |
D | sntp_simple.c | 90 static struct zsock_addrinfo hints; in sntp_simple() local 93 hints.ai_family = AF_UNSPEC; in sntp_simple() 94 hints.ai_socktype = SOCK_DGRAM; in sntp_simple() 95 hints.ai_protocol = 0; in sntp_simple() 97 res = net_getaddrinfo_addr_str(server, "123", &hints, &addr); in sntp_simple()
|
/Zephyr-latest/tests/net/socket/getaddrinfo/src/ |
D | main.c | 290 struct zsock_addrinfo hints = { in ZTEST() local 305 ret = zsock_getaddrinfo("1.2.3.255", "65534", &hints, &res); in ZTEST() 314 hints.ai_socktype = SOCK_DGRAM; in ZTEST() 315 ret = zsock_getaddrinfo("1.2.3.255", "65534", &hints, &res); in ZTEST() 339 struct zsock_addrinfo hints = { in ZTEST() local 377 "65534", &hints, &res); in ZTEST() 407 hints.ai_socktype = SOCK_DGRAM; in ZTEST() 409 "65534", &hints, &res); in ZTEST() 440 "65534", &hints, &res); in ZTEST() 465 ret = zsock_getaddrinfo("[::192.9.5.5]", "65534", &hints, &res); in ZTEST() [all …]
|
/Zephyr-latest/include/zephyr/net/ |
D | socket_offload.h | 31 const struct zsock_addrinfo *hints, 47 const struct zsock_addrinfo *hints,
|
D | socketutils.h | 42 const struct zsock_addrinfo *hints,
|
D | socket.h | 704 const struct zsock_addrinfo *hints, 743 const struct zsock_addrinfo *hints,
|
/Zephyr-latest/samples/net/sockets/http_get/src/ |
D | http_get.c | 62 static struct addrinfo hints; in main() local 76 hints.ai_family = AF_INET; in main() 77 hints.ai_socktype = SOCK_STREAM; in main() 78 st = getaddrinfo(HTTP_HOST, HTTP_PORT, &hints, &res); in main()
|
/Zephyr-latest/samples/net/tftp_client/src/ |
D | tftp-client.c | 40 struct addrinfo *res, hints = {0}; in tftp_init() local 44 hints.ai_socktype = SOCK_DGRAM; in tftp_init() 46 ret = getaddrinfo(hostname, CONFIG_TFTP_APP_PORT, &hints, &res); in tftp_init()
|
/Zephyr-latest/subsys/net/lib/utils/ |
D | addr_utils.c | 34 const struct zsock_addrinfo *hints, in net_getaddrinfo_addr_str() argument 61 return zsock_getaddrinfo(addr_str, port, hints, res); in net_getaddrinfo_addr_str()
|
/Zephyr-latest/modules/thrift/src/thrift/transport/ |
D | TSSLSocket.cpp | 285 struct addrinfo hints, *res, *res0; in open() local 290 std::memset(&hints, 0, sizeof(hints)); in open() 291 hints.ai_family = PF_UNSPEC; in open() 292 hints.ai_socktype = SOCK_STREAM; in open() 293 hints.ai_flags = AI_PASSIVE | AI_ADDRCONFIG; in open() 296 error = getaddrinfo(host_.c_str(), port, &hints, &res0); in open() 299 hints.ai_flags &= ~AI_ADDRCONFIG; in open() 300 error = getaddrinfo(host_.c_str(), port, &hints, &res0); in open()
|
/Zephyr-latest/samples/net/cloud/mqtt_azure/src/ |
D | main.c | 54 static struct addrinfo hints; variable 398 hints.ai_family = AF_INET; in get_mqtt_broker_addrinfo() 399 hints.ai_socktype = SOCK_STREAM; in get_mqtt_broker_addrinfo() 400 hints.ai_protocol = 0; in get_mqtt_broker_addrinfo() 403 &hints, &haddr); in get_mqtt_broker_addrinfo()
|
/Zephyr-latest/samples/net/sockets/big_http_download/src/ |
D | big_http_download.c | 366 static struct addrinfo hints; in main() local 431 hints.ai_family = AF_INET; in main() 432 hints.ai_socktype = SOCK_STREAM; in main() 435 st = getaddrinfo(host, port, &hints, &res); in main()
|
/Zephyr-latest/drivers/wifi/simplelink/ |
D | simplelink_sockets.c | 1056 const struct zsock_addrinfo *hints, in simplelink_getaddrinfo() argument 1072 if (hints) { in simplelink_getaddrinfo() 1077 sl_hints.ai_flags |= ((hints->ai_flags & AI_PASSIVE) ? in simplelink_getaddrinfo() 1079 sl_hints.ai_flags |= ((hints->ai_flags & AI_NUMERICHOST) ? in simplelink_getaddrinfo() 1081 if (hints->ai_family == AF_UNSPEC) { in simplelink_getaddrinfo() 1084 sl_hints.ai_family = (hints->ai_family == AF_INET6 ? in simplelink_getaddrinfo() 1087 if (hints->ai_socktype == 0) { in simplelink_getaddrinfo() 1091 (hints->ai_socktype == SOCK_DGRAM ? in simplelink_getaddrinfo() 1094 if (hints->ai_protocol == 0) { in simplelink_getaddrinfo() 1098 (hints->ai_protocol == IPPROTO_UDP ? in simplelink_getaddrinfo()
|
/Zephyr-latest/subsys/mgmt/updatehub/ |
D | updatehub.c | 171 struct zsock_addrinfo hints; in start_coap_client() local 175 memset(&hints, 0, sizeof(hints)); in start_coap_client() 178 hints.ai_family = AF_INET6; in start_coap_client() 179 hints.ai_socktype = SOCK_STREAM; in start_coap_client() 181 hints.ai_family = AF_INET; in start_coap_client() 182 hints.ai_socktype = SOCK_STREAM; in start_coap_client() 196 ret = zsock_getaddrinfo(UPDATEHUB_SERVER, port, &hints, &addr); in start_coap_client()
|
/Zephyr-latest/include/zephyr/posix/ |
D | netdb.h | 68 int getaddrinfo(const char *host, const char *service, const struct zsock_addrinfo *hints,
|
/Zephyr-latest/drivers/wifi/eswifi/ |
D | eswifi_socket_offload.c | 665 const struct zsock_addrinfo *hints, in eswifi_off_getaddrinfo() argument 689 if (hints && hints->ai_family != AF_INET) { in eswifi_off_getaddrinfo() 720 ai->ai_socktype = hints ? hints->ai_socktype : SOCK_STREAM; in eswifi_off_getaddrinfo()
|
/Zephyr-latest/drivers/net/ |
D | nsos_adapt.c | 1025 struct addrinfo hints; in nsos_adapt_getaddrinfo() local 1030 hints.ai_flags = hints_mid->ai_flags; in nsos_adapt_getaddrinfo() 1032 ret = socket_family_from_nsos_mid(hints_mid->ai_family, &hints.ai_family); in nsos_adapt_getaddrinfo() 1038 ret = socket_type_from_nsos_mid(hints_mid->ai_socktype, &hints.ai_socktype); in nsos_adapt_getaddrinfo() 1044 ret = socket_proto_from_nsos_mid(hints_mid->ai_protocol, &hints.ai_protocol); in nsos_adapt_getaddrinfo() 1052 hints_mid ? &hints : NULL, in nsos_adapt_getaddrinfo()
|
D | nsos.h | 169 const struct nsos_mid_addrinfo *hints,
|
D | nsos_sockets.c | 1490 const struct zsock_addrinfo *hints, in nsos_getaddrinfo() argument 1502 if (hints) { in nsos_getaddrinfo() 1503 hints_mid.ai_flags = hints->ai_flags; in nsos_getaddrinfo() 1504 hints_mid.ai_family = hints->ai_family; in nsos_getaddrinfo() 1505 hints_mid.ai_socktype = hints->ai_socktype; in nsos_getaddrinfo() 1506 hints_mid.ai_protocol = hints->ai_protocol; in nsos_getaddrinfo() 1510 hints ? &hints_mid : NULL, in nsos_getaddrinfo()
|
/Zephyr-latest/lib/posix/options/ |
D | net.c | 208 int getaddrinfo(const char *host, const char *service, const struct zsock_addrinfo *hints, in getaddrinfo() argument 211 return zsock_getaddrinfo(host, service, hints, res); in getaddrinfo()
|
/Zephyr-latest/samples/net/cloud/aws_iot_mqtt/src/ |
D | main.c | 427 const struct addrinfo hints = { in resolve_broker_addr() local 435 ret = getaddrinfo(CONFIG_AWS_ENDPOINT, port_string, &hints, &ai); in resolve_broker_addr()
|
/Zephyr-latest/samples/net/secure_mqtt_sensor_actuator/src/ |
D | mqtt_client.c | 441 const struct addrinfo hints = { in app_mqtt_init() local 448 CONFIG_NET_SAMPLE_MQTT_BROKER_PORT, &hints, &result); in app_mqtt_init()
|
/Zephyr-latest/subsys/mgmt/hawkbit/ |
D | hawkbit.c | 423 struct zsock_addrinfo hints = {0}; in start_http_client() local 428 hints.ai_family = AF_INET6; in start_http_client() 429 hints.ai_socktype = SOCK_STREAM; in start_http_client() 431 hints.ai_family = AF_INET; in start_http_client() 432 hints.ai_socktype = SOCK_STREAM; in start_http_client() 436 ret = zsock_getaddrinfo(HAWKBIT_SERVER, HAWKBIT_PORT, &hints, &addr); in start_http_client()
|