Home
last modified time | relevance | path

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

/Zephyr-latest/samples/net/sockets/http_get/src/
Dhttp_get.c51 void dump_addrinfo(const struct addrinfo *ai) in dump_addrinfo() argument
55 ai, ai->ai_family, ai->ai_socktype, ai->ai_protocol, in dump_addrinfo()
56 ai->ai_addr->sa_family, in dump_addrinfo()
57 ((struct sockaddr_in *)ai->ai_addr)->sin_port); in dump_addrinfo()
/Zephyr-latest/samples/net/sockets/big_http_download/src/
Dbig_http_download.c86 void dump_addrinfo(const struct addrinfo *ai) in dump_addrinfo() argument
90 ai, ai->ai_family, ai->ai_socktype, ai->ai_protocol, in dump_addrinfo()
91 ai->ai_addr->sa_family, in dump_addrinfo()
92 ((struct sockaddr_in *)ai->ai_addr)->sin_port); in dump_addrinfo()
253 bool download(struct addrinfo *ai, bool is_tls, bool *redirect) in download() argument
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()
298 CHECK(connect(sock, ai->ai_addr, ai->ai_addrlen)); in download()
/Zephyr-latest/subsys/net/lib/sockets/
Dgetaddrinfo.c61 struct zsock_addrinfo *ai; in dns_resolve_cb() local
80 ai = &state->ai_arr[state->idx]; in dns_resolve_cb()
82 state->ai_arr[state->idx - 1].ai_next = ai; in dns_resolve_cb()
85 memcpy(&ai->_ai_addr, &info->ai_addr, info->ai_addrlen); in dns_resolve_cb()
86 net_sin(&ai->_ai_addr)->sin_port = state->port; in dns_resolve_cb()
87 ai->ai_addr = &ai->_ai_addr; in dns_resolve_cb()
88 ai->ai_addrlen = info->ai_addrlen; in dns_resolve_cb()
89 memcpy(&ai->_ai_canonname, &info->ai_canonname, in dns_resolve_cb()
90 sizeof(ai->_ai_canonname)); in dns_resolve_cb()
91 ai->ai_canonname = ai->_ai_canonname; in dns_resolve_cb()
[all …]
/Zephyr-latest/boards/common/
Decpprog.board.cmake1 # Copyright (c) 2024 tinyVision.ai Inc.
/Zephyr-latest/samples/boards/nxp/mimxrt1060_evk/system_off/
DKconfig1 # Copyright (c) 2022, Whisper.ai
/Zephyr-latest/boards/nxp/mimxrt1060_evk/
Dmimxrt1060_evk_mimxrt1062_B_defconfig2 # Copyright (c) 2022, Whisper.ai
Dmimxrt1060_evk_mimxrt1062_qspi_B.overlay2 * Copyright (c) 2022, Whisper.ai
/Zephyr-latest/drivers/wifi/eswifi/
Deswifi_socket_offload.c669 struct zsock_addrinfo *ai; in eswifi_off_getaddrinfo() local
705 ai = *res; in eswifi_off_getaddrinfo()
706 if (!ai) { in eswifi_off_getaddrinfo()
719 ai->ai_family = AF_INET; in eswifi_off_getaddrinfo()
720 ai->ai_socktype = hints ? hints->ai_socktype : SOCK_STREAM; in eswifi_off_getaddrinfo()
721 ai->ai_protocol = ai->ai_socktype == SOCK_STREAM ? IPPROTO_TCP : IPPROTO_UDP; in eswifi_off_getaddrinfo()
723 ai_addr->sin_family = ai->ai_family; 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()
/Zephyr-latest/soc/st/stm32/stm32h7x/
DKconfig.defconfig.stm32h753xx3 # Copyright (c) 2020 Petri Oksanen <petri@iote.ai>
/Zephyr-latest/drivers/wifi/simplelink/
Dsimplelink_sockets.c997 struct zsock_addrinfo *ai; in set_addr_info() local
1001 ai = calloc(1, sizeof(struct zsock_addrinfo)); in set_addr_info()
1002 if (!ai) { in set_addr_info()
1010 free(ai); in set_addr_info()
1016 ai->ai_family = (sl_ai->ai_family == SL_AF_INET6 ? AF_INET6 : AF_INET); in set_addr_info()
1017 ai->ai_socktype = (sl_ai->ai_socktype == SLNETSOCK_SOCK_DGRAM ? in set_addr_info()
1019 ai->ai_protocol = (sl_ai->ai_protocol == SLNETSOCK_PROTO_UDP ? 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()
1030 ai->ai_addrlen = sizeof(struct sockaddr_in); in set_addr_info()
[all …]
/Zephyr-latest/dts/arm/st/h7/
Dstm32h753.dtsi2 * Copyright (c) 2020 Petri Oksanen <petri@iote.ai>
Dstm32h753Xi.dtsi2 * Copyright (c) 2020 Petri Oksanen <petri@iote.ai>
/Zephyr-latest/drivers/video/
DKconfig.emul_rx1 # Copyright (c) 2024 tinyVision.ai Inc.
DKconfig.emul_imager1 # Copyright (c) 2024 tinyVision.ai Inc.
/Zephyr-latest/samples/net/cloud/aws_iot_mqtt/src/
Dmain.c425 struct addrinfo *ai = NULL; in resolve_broker_addr() local
435 ret = getaddrinfo(CONFIG_AWS_ENDPOINT, port_string, &hints, &ai); in resolve_broker_addr()
439 memcpy(broker, ai->ai_addr, MIN(ai->ai_addrlen, sizeof(struct sockaddr_storage))); in resolve_broker_addr()
447 freeaddrinfo(ai); in resolve_broker_addr()
/Zephyr-latest/tests/drivers/video/api/
Dapp.overlay2 * Copyright (c) 2024 tinyVision.ai Inc.
/Zephyr-latest/include/zephyr/posix/
Dnetdb.h66 void freeaddrinfo(struct zsock_addrinfo *ai);
/Zephyr-latest/lib/posix/options/
Dnet.c198 void freeaddrinfo(struct zsock_addrinfo *ai) in freeaddrinfo() argument
200 zsock_freeaddrinfo(ai); in freeaddrinfo()
/Zephyr-latest/include/zephyr/net/
Dsocket.h756 void zsock_freeaddrinfo(struct zsock_addrinfo *ai);
/Zephyr-latest/boards/beagle/beaglebone_ai64/doc/
Dindex.rst120 * `BeagleBone AI-64 Homepage <https://www.beagleboard.org/boards/beaglebone-ai-64>`_
/Zephyr-latest/boards/infineon/cy8ckit_062s2_ai/doc/
Dindex.rst164 https://www.infineon.com/cms/en/product/evaluation-boards/cy8ckit-062s2-ai/?redirId=273839
/Zephyr-latest/doc/releases/
Drelease-notes-2.1.rst793 …\_getaddrinfo() returns garbage values if IPv4 address is passed and hints->ai\_family == AF\_INET6