Home
last modified time | relevance | path

Searched refs:ai_family (Results 1 – 25 of 30) sorted by relevance

12

/Zephyr-latest/tests/net/lib/dns_cache/src/
Dmain.c24 struct dns_addrinfo info_write = {.ai_family = AF_INET}; in ZTEST()
31 zassert_equal(AF_INET, info_read.ai_family); in ZTEST()
40 zassert_equal(0, info_read.ai_family); in ZTEST()
45 struct dns_addrinfo info_write = {.ai_family = AF_INET}; in ZTEST()
56 zassert_equal(AF_INET, info_read[TEST_DNS_CACHE_SIZE - 1].ai_family); in ZTEST()
61 struct dns_addrinfo info_write = {.ai_family = AF_INET}; in ZTEST()
72 zassert_equal(0, info_read[TEST_DNS_CACHE_SIZE - 1].ai_family); in ZTEST()
77 struct dns_addrinfo info_write = {.ai_family = AF_INET}; in ZTEST()
88 zassert_equal(AF_INET, info_read[TEST_DNS_CACHE_SIZE - 2].ai_family); in ZTEST()
93 struct dns_addrinfo info_write = {.ai_family = AF_INET}; in ZTEST()
[all …]
/Zephyr-latest/samples/net/cloud/tagoio_http_post/src/
Dsockets.c49 hints.ai_family = AF_INET6; in tagoio_connect()
51 hints.ai_family = AF_INET; in tagoio_connect()
69 (addr->ai_family == AF_INET ? "IPv4" : "IPv6"), in tagoio_connect()
70 net_addr_ntop(addr->ai_family, in tagoio_connect()
74 ctx->sock = socket(hints.ai_family, in tagoio_connect()
79 (addr->ai_family == AF_INET ? "IPv4" : "IPv6"), in tagoio_connect()
88 (addr->ai_family == AF_INET ? "IPv4" : "IPv6"), in tagoio_connect()
/Zephyr-latest/samples/net/sockets/http_get/src/
Dhttp_get.c55 ai, ai->ai_family, ai->ai_socktype, ai->ai_protocol, in dump_addrinfo()
76 hints.ai_family = AF_INET; in main()
95 sock = socket(res->ai_family, res->ai_socktype, IPPROTO_TLS_1_2); in main()
97 sock = socket(res->ai_family, res->ai_socktype, res->ai_protocol); in main()
/Zephyr-latest/samples/net/dns_resolve/src/
Dmain.c67 if (info->ai_family == AF_INET) { in dns_result_cb()
70 } else if (info->ai_family == AF_INET6) { in dns_result_cb()
74 LOG_ERR("Invalid IP address family %d", info->ai_family); in dns_result_cb()
80 net_addr_ntop(info->ai_family, addr, in dns_result_cb()
116 if (info->ai_family == AF_INET) { in mdns_result_cb()
119 } else if (info->ai_family == AF_INET6) { in mdns_result_cb()
123 LOG_ERR("Invalid IP address family %d", info->ai_family); in mdns_result_cb()
129 net_addr_ntop(info->ai_family, addr, in mdns_result_cb()
/Zephyr-latest/subsys/net/lib/sockets/
Dgetaddrinfo.c92 ai->ai_family = info->ai_family; in dns_resolve_cb()
190 if (hints->ai_family == AF_INET || hints->ai_family == AF_UNSPEC) { in getaddrinfo_null_host()
196 res->ai_family = AF_INET; in getaddrinfo_null_host()
197 } else if (hints->ai_family == AF_INET6) { in getaddrinfo_null_host()
203 res->ai_family = AF_INET6; in getaddrinfo_null_host()
230 family = hints->ai_family; in z_impl_z_zsock_getaddrinfo_internal()
371 family = hints->ai_family; in try_resolve_literal_addr()
397 res->ai_family = resolved_family; in try_resolve_literal_addr()
/Zephyr-latest/tests/net/socket/getaddrinfo/src/
Dmain.c291 .ai_family = AF_INET, in ZTEST()
300 zassert_equal(res->ai_family, AF_INET, ""); in ZTEST()
309 zassert_equal(res->ai_family, AF_INET, ""); in ZTEST()
319 zassert_equal(res->ai_family, AF_INET, ""); in ZTEST()
340 .ai_family = AF_INET6, in ZTEST()
350 zassert_equal(res->ai_family, AF_INET6, ""); in ZTEST()
381 zassert_equal(res->ai_family, AF_INET6, ""); in ZTEST()
413 zassert_equal(res->ai_family, AF_INET6, ""); in ZTEST()
565 .ai_family = AF_INET6, in ZTEST()
579 .ai_family = AF_INET, in ZTEST()
[all …]
/Zephyr-latest/samples/net/sockets/big_http_download/src/
Dbig_http_download.c90 ai, ai->ai_family, ai->ai_socktype, ai->ai_protocol, in dump_addrinfo()
265 sock = socket(ai->ai_family, ai->ai_socktype, IPPROTO_TLS_1_2); in download()
271 sock = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol); in download()
431 hints.ai_family = AF_INET; in main()
/Zephyr-latest/drivers/wifi/simplelink/
Dsimplelink_sockets.c1016 ai->ai_family = (sl_ai->ai_family == SL_AF_INET6 ? AF_INET6 : AF_INET); in set_addr_info()
1023 if (ai->ai_family == AF_INET) { in set_addr_info()
1027 net_sin(ai_addr)->sin_family = ai->ai_family; in set_addr_info()
1035 net_sin6(ai_addr)->sin6_family = ai->ai_family; in set_addr_info()
1081 if (hints->ai_family == AF_UNSPEC) { in simplelink_getaddrinfo()
1082 sl_hints.ai_family = SLNETSOCK_AF_UNSPEC; in simplelink_getaddrinfo()
1084 sl_hints.ai_family = (hints->ai_family == AF_INET6 ? in simplelink_getaddrinfo()
/Zephyr-latest/modules/thrift/src/thrift/transport/
DTSSLServerSocket.cpp130 serverSocket_ = socket(trybind->ai_family, trybind->ai_socktype, IPPROTO_TLS_1_2); in listen()
150 if (trybind->ai_family == AF_INET6) { in listen()
DTSSLSocket.cpp111 socket_ = socket(res->ai_family, res->ai_socktype, ctx_->protocol); in openSecConnection()
291 hints.ai_family = PF_UNSPEC; in open()
/Zephyr-latest/subsys/net/lib/shell/
Ddns.c31 if (info->ai_family == AF_INET) { in dns_result_cb()
35 } else if (info->ai_family == AF_INET6) { in dns_result_cb()
/Zephyr-latest/subsys/net/lib/sntp/
Dsntp_simple.c93 hints.ai_family = AF_UNSPEC; in sntp_simple()
/Zephyr-latest/tests/posix/headers/src/
Dnetdb_h.c45 zassert_not_equal(-1, offsetof(struct addrinfo, ai_family)); in ZTEST()
/Zephyr-latest/drivers/net/
Dnsos.h106 int ai_family; member
Dnsos_adapt.c971 ret = socket_family_to_nsos_mid(res_p->ai_family, &wrap->addrinfo_mid.ai_family); in addrinfo_to_nsos_mid()
1032 ret = socket_family_from_nsos_mid(hints_mid->ai_family, &hints.ai_family); in nsos_adapt_getaddrinfo()
Dnsos_sockets.c1466 wrap->addrinfo.ai_family = res_p->ai_family; in addrinfo_from_nsos_mid()
1504 hints_mid.ai_family = hints->ai_family; in nsos_getaddrinfo()
/Zephyr-latest/drivers/wifi/eswifi/
Deswifi_socket_offload.c689 if (hints && hints->ai_family != AF_INET) { in eswifi_off_getaddrinfo()
719 ai->ai_family = AF_INET; in eswifi_off_getaddrinfo()
723 ai_addr->sin_family = ai->ai_family; in eswifi_off_getaddrinfo()
/Zephyr-latest/include/zephyr/net/
Ddns_resolve.h257 uint8_t ai_family; member
Dsocket.h279 int ai_family; /**< Address family of the returned addresses */ member
/Zephyr-latest/subsys/mgmt/updatehub/
Dupdatehub.c178 hints.ai_family = AF_INET6; in start_coap_client()
181 hints.ai_family = AF_INET; in start_coap_client()
209 ctx.sock = zsock_socket(addr->ai_family, SOCK_DGRAM, protocol); in start_coap_client()
/Zephyr-latest/tests/net/lib/dns_resolve/src/
Dmain.c688 if (info && info->ai_family == AF_INET) { in dns_result_numeric_cb()
697 if (info && info->ai_family == AF_INET6) { in dns_result_numeric_cb()
/Zephyr-latest/drivers/modem/
Dublox-sara-r4.c879 (void)net_addr_pton(result.ai_family, &argv[0][1], in MODEM_CMD_DEFINE()
1984 result.ai_family = AF_INET; in offload_getaddrinfo()
2000 if (result.ai_family == AF_INET) { in offload_getaddrinfo()
2006 if (net_addr_pton(result.ai_family, node, in offload_getaddrinfo()
2027 net_addr_ntop(result.ai_family, in offload_getaddrinfo()
/Zephyr-latest/subsys/net/lib/dns/
Dresolve.c871 info.ai_family = AF_INET; in dns_validate_msg()
891 info.ai_family = AF_INET6; in dns_validate_msg()
1382 info.ai_family = AF_INET; in dns_resolve_name()
1399 info.ai_family = AF_INET6; in dns_resolve_name()
/Zephyr-latest/samples/net/cloud/aws_iot_mqtt/src/
Dmain.c428 .ai_family = AF_INET, in resolve_broker_addr()
/Zephyr-latest/samples/net/cloud/mqtt_azure/src/
Dmain.c398 hints.ai_family = AF_INET; in get_mqtt_broker_addrinfo()

12