/Zephyr-latest/tests/net/lib/dns_cache/src/ |
D | main.c | 24 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/ |
D | sockets.c | 49 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/ |
D | http_get.c | 55 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/ |
D | main.c | 67 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/ |
D | getaddrinfo.c | 92 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/ |
D | main.c | 291 .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/ |
D | big_http_download.c | 90 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/ |
D | simplelink_sockets.c | 1016 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/ |
D | TSSLServerSocket.cpp | 130 serverSocket_ = socket(trybind->ai_family, trybind->ai_socktype, IPPROTO_TLS_1_2); in listen() 150 if (trybind->ai_family == AF_INET6) { in listen()
|
D | TSSLSocket.cpp | 111 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/ |
D | dns.c | 31 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/ |
D | sntp_simple.c | 93 hints.ai_family = AF_UNSPEC; in sntp_simple()
|
/Zephyr-latest/tests/posix/headers/src/ |
D | netdb_h.c | 45 zassert_not_equal(-1, offsetof(struct addrinfo, ai_family)); in ZTEST()
|
/Zephyr-latest/drivers/net/ |
D | nsos.h | 106 int ai_family; member
|
D | nsos_adapt.c | 971 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()
|
D | nsos_sockets.c | 1466 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/ |
D | eswifi_socket_offload.c | 689 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/ |
D | dns_resolve.h | 257 uint8_t ai_family; member
|
D | socket.h | 279 int ai_family; /**< Address family of the returned addresses */ member
|
/Zephyr-latest/subsys/mgmt/updatehub/ |
D | updatehub.c | 178 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/ |
D | main.c | 688 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/ |
D | ublox-sara-r4.c | 879 (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/ |
D | resolve.c | 871 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/ |
D | main.c | 428 .ai_family = AF_INET, in resolve_broker_addr()
|
/Zephyr-latest/samples/net/cloud/mqtt_azure/src/ |
D | main.c | 398 hints.ai_family = AF_INET; in get_mqtt_broker_addrinfo()
|