Home
last modified time | relevance | path

Searched refs:ai_addr (Results 1 – 25 of 31) sorted by relevance

12

/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()
329 switch (sample_test_dns_addrinfo.ai_addr.sa_family) { in main()
331 src = &net_sin(&sample_test_dns_addrinfo.ai_addr)->sin_addr; in main()
332 port = &net_sin(&sample_test_dns_addrinfo.ai_addr)->sin_port; in main()
335 src = &net_sin6(&sample_test_dns_addrinfo.ai_addr)->sin6_addr; in main()
336 port = &net_sin6(&sample_test_dns_addrinfo.ai_addr)->sin6_port; in main()
342 inet_ntop(sample_test_dns_addrinfo.ai_addr.sa_family, src, ip_str, sizeof(ip_str)); in main()
[all …]
/Zephyr-latest/samples/net/sockets/http_get/src/
Dhttp_get.c56 ai->ai_addr->sa_family, in dump_addrinfo()
57 ((struct sockaddr_in *)ai->ai_addr)->sin_port); in dump_addrinfo()
113 CHECK(connect(sock, res->ai_addr, res->ai_addrlen)); in main()
/Zephyr-latest/drivers/wifi/eswifi/
Deswifi_socket_offload.c668 struct sockaddr_in *ai_addr; in eswifi_off_getaddrinfo() local
712 ai_addr = calloc(1, sizeof(*ai_addr)); in eswifi_off_getaddrinfo()
713 if (!ai_addr) { in eswifi_off_getaddrinfo()
723 ai_addr->sin_family = ai->ai_family; in eswifi_off_getaddrinfo()
724 ai_addr->sin_port = htons(port); in eswifi_off_getaddrinfo()
726 if (!net_ipaddr_parse(rsp, strlen(rsp), (struct sockaddr *)ai_addr)) { in eswifi_off_getaddrinfo()
727 free(ai_addr); in eswifi_off_getaddrinfo()
733 ai->ai_addrlen = sizeof(*ai_addr); in eswifi_off_getaddrinfo()
734 ai->ai_addr = (struct sockaddr *)ai_addr; in eswifi_off_getaddrinfo()
746 free(res->ai_addr); in eswifi_off_freeaddrinfo()
/Zephyr-latest/drivers/wifi/simplelink/
Dsimplelink_sockets.c998 struct sockaddr *ai_addr; in set_addr_info() local
1007 ai_addr = calloc(1, sizeof(struct sockaddr)); in set_addr_info()
1008 if (!ai_addr) { in set_addr_info()
1025 (SlNetSock_AddrIn_t *)sl_ai->ai_addr; in set_addr_info()
1027 net_sin(ai_addr)->sin_family = ai->ai_family; in set_addr_info()
1028 net_sin(ai_addr)->sin_addr.s_addr = sl_addr->sin_addr.s_addr; in set_addr_info()
1029 net_sin(ai_addr)->sin_port = sl_addr->sin_port; in set_addr_info()
1033 (SlNetSock_AddrIn6_t *)sl_ai->ai_addr; in set_addr_info()
1035 net_sin6(ai_addr)->sin6_family = ai->ai_family; in set_addr_info()
1036 net_sin6(ai_addr)->sin6_addr.s6_addr32[0] = in set_addr_info()
[all …]
/Zephyr-latest/samples/net/dns_resolve/src/
Dmain.c69 addr = &net_sin(&info->ai_addr)->sin_addr; in dns_result_cb()
72 addr = &net_sin6(&info->ai_addr)->sin6_addr; in dns_result_cb()
118 addr = &net_sin(&info->ai_addr)->sin_addr; in mdns_result_cb()
121 addr = &net_sin6(&info->ai_addr)->sin6_addr; in mdns_result_cb()
/Zephyr-latest/subsys/net/lib/sockets/
Dgetaddrinfo.c36 (addrinfo)->ai_addr = &(addrinfo)->_ai_addr; \
85 memcpy(&ai->_ai_addr, &info->ai_addr, info->ai_addrlen); in dns_resolve_cb()
87 ai->ai_addr = &ai->_ai_addr; in dns_resolve_cb()
226 struct sockaddr *ai_addr; in z_impl_z_zsock_getaddrinfo_internal() local
290 ai_addr = &ai_state.ai_arr[idx]._ai_addr; in z_impl_z_zsock_getaddrinfo_internal()
291 net_sin(ai_addr)->sin_port = htons(port); in z_impl_z_zsock_getaddrinfo_internal()
/Zephyr-latest/tests/net/socket/getaddrinfo/src/
Dmain.c323 saddr = (struct sockaddr_in *)res->ai_addr; in ZTEST()
354 saddr = (struct sockaddr_in6 *)res->ai_addr; in ZTEST()
385 saddr = (struct sockaddr_in6 *)res->ai_addr; in ZTEST()
417 saddr = (struct sockaddr_in6 *)res->ai_addr; in ZTEST()
443 saddr = (struct sockaddr_in6 *)res->ai_addr; in ZTEST()
468 saddr = (struct sockaddr_in6 *)res->ai_addr; in ZTEST()
494 saddr = (struct sockaddr_in6 *)res->ai_addr; in ZTEST()
520 saddr = (struct sockaddr_in6 *)res->ai_addr; in ZTEST()
619 saddr = net_sin(res->ai_addr); in ZTEST()
634 saddr6 = net_sin6(res->ai_addr); in ZTEST()
[all …]
/Zephyr-latest/samples/net/cloud/tagoio_http_post/src/
Dsockets.c71 &net_sin(addr->ai_addr)->sin_addr, in tagoio_connect()
86 if (connect(ctx->sock, addr->ai_addr, addr->ai_addrlen) < 0) { in tagoio_connect()
/Zephyr-latest/samples/net/tftp_client/src/
Dtftp-client.c53 memcpy(&remote_addr, res->ai_addr, sizeof(remote_addr)); in tftp_init()
/Zephyr-latest/samples/net/sockets/big_http_download/src/
Dbig_http_download.c91 ai->ai_addr->sa_family, in dump_addrinfo()
92 ((struct sockaddr_in *)ai->ai_addr)->sin_port); in dump_addrinfo()
298 CHECK(connect(sock, ai->ai_addr, ai->ai_addrlen)); in download()
/Zephyr-latest/subsys/net/lib/shell/
Ddns.c33 &net_sin(&info->ai_addr)->sin_addr, in dns_result_cb()
37 &net_sin6(&info->ai_addr)->sin6_addr, in dns_result_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/tests/posix/headers/src/
Dnetdb_h.c49 zassert_not_equal(-1, offsetof(struct addrinfo, ai_addr)); in ZTEST()
/Zephyr-latest/subsys/net/lib/dns/
Dresolve.c869 addr = (uint8_t *)&net_sin(&info.ai_addr)-> in dns_validate_msg()
872 info.ai_addr.sa_family = AF_INET; in dns_validate_msg()
889 addr = (uint8_t *)&net_sin6(&info.ai_addr)-> in dns_validate_msg()
892 info.ai_addr.sa_family = AF_INET6; in dns_validate_msg()
1380 memcpy(net_sin(&info.ai_addr), net_sin(&addr), in dns_resolve_name()
1383 info.ai_addr.sa_family = AF_INET; in dns_resolve_name()
1397 memcpy(net_sin6(&info.ai_addr), net_sin6(&addr), in dns_resolve_name()
1400 info.ai_addr.sa_family = AF_INET6; in dns_resolve_name()
/Zephyr-latest/drivers/net/
Dnsos.h110 struct nsos_mid_sockaddr *ai_addr; member
Dnsos_adapt.c986 wrap->addrinfo_mid.ai_addr = in addrinfo_to_nsos_mid()
990 ret = sockaddr_to_nsos_mid(res_p->ai_addr, res_p->ai_addrlen, in addrinfo_to_nsos_mid()
991 wrap->addrinfo_mid.ai_addr, in addrinfo_to_nsos_mid()
Dnsos_sockets.c1470 wrap->addrinfo.ai_addr = 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/samples/net/secure_mqtt_sensor_actuator/src/
Dmqtt_client.c459 broker4->sin_addr.s_addr = ((struct sockaddr_in *)result->ai_addr)->sin_addr.s_addr; in app_mqtt_init()
461 broker4->sin_port = ((struct sockaddr_in *)result->ai_addr)->sin_port; in app_mqtt_init()
/Zephyr-latest/include/zephyr/net/
Ddns_resolve.h253 struct sockaddr ai_addr; member
Dsocket.h284 struct sockaddr *ai_addr; /**< Pointer to the address */ member
/Zephyr-latest/modules/thrift/src/thrift/transport/
DTSSLServerSocket.cpp160 if (0 == ::bind(serverSocket_, trybind->ai_addr, 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/tests/net/lib/dns_resolve/src/
Dmain.c690 if (net_ipv4_addr_cmp(&net_sin(&info->ai_addr)->sin_addr, in dns_result_numeric_cb()
699 if (net_ipv6_addr_cmp(&net_sin6(&info->ai_addr)->sin6_addr, in dns_result_numeric_cb()
/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/samples/net/cloud/mqtt_azure/src/
Dmain.c130 &net_sin(haddr->ai_addr)->sin_addr); in broker_init()

12