Home
last modified time | relevance | path

Searched refs:ai_addrlen (Results 1 – 22 of 22) sorted by relevance

/Zephyr-latest/samples/net/cellular_modem/src/
Dmain.c130 int sample_echo_packet(struct sockaddr *ai_addr, socklen_t ai_addrlen, uint16_t *port) in sample_echo_packet() argument
165 ai_addr, ai_addrlen); in sample_echo_packet()
217 int sample_transmit_packets(struct sockaddr *ai_addr, socklen_t ai_addrlen, uint16_t *port) in sample_transmit_packets() argument
243 ai_addr, ai_addrlen); in sample_transmit_packets()
347 sample_test_dns_addrinfo.ai_addrlen, port); in main()
355 sample_test_dns_addrinfo.ai_addrlen, port); in main()
384 sample_test_dns_addrinfo.ai_addrlen, port); in main()
/Zephyr-latest/subsys/net/lib/sockets/
Dgetaddrinfo.c37 (addrinfo)->ai_addrlen = sizeof(*(sockaddr)); \
85 memcpy(&ai->_ai_addr, &info->ai_addr, info->ai_addrlen); in dns_resolve_cb()
88 ai->ai_addrlen = info->ai_addrlen; in dns_resolve_cb()
/Zephyr-latest/subsys/net/lib/sntp/
Dsntp_simple.c105 res = sntp_simple_helper(addr->ai_addr, addr->ai_addrlen, timeout, ts); in sntp_simple()
/Zephyr-latest/samples/net/sockets/http_get/src/
Dhttp_get.c113 CHECK(connect(sock, res->ai_addr, res->ai_addrlen)); in main()
/Zephyr-latest/samples/net/cloud/tagoio_http_post/src/
Dsockets.c86 if (connect(ctx->sock, addr->ai_addr, addr->ai_addrlen) < 0) { in tagoio_connect()
/Zephyr-latest/tests/posix/headers/src/
Dnetdb_h.c48 zassert_not_equal(-1, offsetof(struct addrinfo, ai_addrlen)); in ZTEST()
/Zephyr-latest/drivers/net/
Dnsos.h109 size_t ai_addrlen; member
Dnsos_adapt.c988 wrap->addrinfo_mid.ai_addrlen = sizeof(wrap->addr_storage); in addrinfo_to_nsos_mid()
990 ret = sockaddr_to_nsos_mid(res_p->ai_addr, res_p->ai_addrlen, in addrinfo_to_nsos_mid()
992 &wrap->addrinfo_mid.ai_addrlen); in addrinfo_to_nsos_mid()
Dnsos_sockets.c1472 wrap->addrinfo.ai_addrlen = sizeof(wrap->addr_storage); in addrinfo_from_nsos_mid()
1474 sockaddr_from_nsos_mid(wrap->addrinfo.ai_addr, &wrap->addrinfo.ai_addrlen, in addrinfo_from_nsos_mid()
1475 res_p->ai_addr, res_p->ai_addrlen); in addrinfo_from_nsos_mid()
/Zephyr-latest/include/zephyr/net/
Ddns_resolve.h255 socklen_t ai_addrlen; member
Dsocket.h283 socklen_t ai_addrlen; /**< Length of the socket address */ member
/Zephyr-latest/modules/thrift/src/thrift/transport/
DTSSLServerSocket.cpp161 static_cast<int>(trybind->ai_addrlen))) { in listen()
DTSSLSocket.cpp198 ret = connect(socket_, res->ai_addr, static_cast<int>(res->ai_addrlen)); in openSecConnection()
263 setCachedAddress(res->ai_addr, static_cast<socklen_t>(res->ai_addrlen)); in openSecConnection()
/Zephyr-latest/samples/net/sockets/big_http_download/src/
Dbig_http_download.c298 CHECK(connect(sock, ai->ai_addr, ai->ai_addrlen)); in download()
/Zephyr-latest/subsys/net/lib/dns/
Dresolve.c873 info.ai_addrlen = sizeof(struct sockaddr_in); in dns_validate_msg()
893 info.ai_addrlen = sizeof(struct sockaddr_in6); in dns_validate_msg()
1384 info.ai_addrlen = sizeof(struct sockaddr_in); in dns_resolve_name()
1401 info.ai_addrlen = sizeof(struct sockaddr_in6); in dns_resolve_name()
/Zephyr-latest/samples/net/cloud/aws_iot_mqtt/src/
Dmain.c439 memcpy(broker, ai->ai_addr, MIN(ai->ai_addrlen, sizeof(struct sockaddr_storage))); in resolve_broker_addr()
/Zephyr-latest/drivers/wifi/simplelink/
Dsimplelink_sockets.c1030 ai->ai_addrlen = sizeof(struct sockaddr_in); in set_addr_info()
1045 ai->ai_addrlen = sizeof(struct sockaddr_in6); in set_addr_info()
/Zephyr-latest/drivers/wifi/eswifi/
Deswifi_socket_offload.c733 ai->ai_addrlen = sizeof(*ai_addr); in eswifi_off_getaddrinfo()
/Zephyr-latest/subsys/mgmt/updatehub/
Dupdatehub.c230 if (zsock_connect(ctx.sock, addr->ai_addr, addr->ai_addrlen) < 0) { in start_coap_client()
/Zephyr-latest/subsys/mgmt/hawkbit/
Dhawkbit.c472 if (zsock_connect(*hb_sock, addr->ai_addr, addr->ai_addrlen) < 0) { in start_http_client()
/Zephyr-latest/drivers/modem/
Dublox-sara-r4.c1987 result.ai_addrlen = sizeof(result_addr); in offload_getaddrinfo()
Dsimcom-sim7080.c707 dns_result.ai_addrlen = sizeof(dns_result_addr); in offload_getaddrinfo()