Home
last modified time | relevance | path

Searched refs:addrinfo (Results 1 – 17 of 17) sorted by relevance

/Zephyr-latest/tests/posix/headers/src/
Dnetdb_h.c44 zassert_not_equal(-1, offsetof(struct addrinfo, ai_flags)); in ZTEST()
45 zassert_not_equal(-1, offsetof(struct addrinfo, ai_family)); in ZTEST()
46 zassert_not_equal(-1, offsetof(struct addrinfo, ai_socktype)); in ZTEST()
47 zassert_not_equal(-1, offsetof(struct addrinfo, ai_protocol)); in ZTEST()
48 zassert_not_equal(-1, offsetof(struct addrinfo, ai_addrlen)); in ZTEST()
49 zassert_not_equal(-1, offsetof(struct addrinfo, ai_addr)); in ZTEST()
50 zassert_not_equal(-1, offsetof(struct addrinfo, ai_canonname)); in ZTEST()
51 zassert_not_equal(-1, offsetof(struct addrinfo, ai_next)); in ZTEST()
/Zephyr-latest/subsys/net/lib/dns/
Ddns_cache.c25 int dns_cache_add(struct dns_cache *cache, char const *query, struct dns_addrinfo const *addrinfo, in dns_cache_add() argument
32 if (cache == NULL || query == NULL || addrinfo == NULL || ttl == 0) { in dns_cache_add()
66 cache->entries[index_to_replace].data = *addrinfo; in dns_cache_add()
100 int dns_cache_find(struct dns_cache const *cache, const char *query, struct dns_addrinfo *addrinfo, in dns_cache_find() argument
106 if (cache == NULL || query == NULL || addrinfo == NULL || addrinfo_array_len <= 0) { in dns_cache_find()
131 addrinfo[found] = cache->entries[i].data; in dns_cache_find()
Ddns_cache.h71 int dns_cache_add(struct dns_cache *cache, char const *query, struct dns_addrinfo const *addrinfo,
97 int dns_cache_find(struct dns_cache const *cache, const char *query, struct dns_addrinfo *addrinfo,
/Zephyr-latest/samples/net/sockets/http_get/src/
Dhttp_get.c51 void dump_addrinfo(const struct addrinfo *ai) in dump_addrinfo()
62 static struct addrinfo hints; in main()
63 struct addrinfo *res; in main()
/Zephyr-latest/subsys/net/lib/sockets/
Dgetaddrinfo.c35 #define INIT_ADDRINFO(addrinfo, sockaddr) { \ argument
36 (addrinfo)->ai_addr = &(addrinfo)->_ai_addr; \
37 (addrinfo)->ai_addrlen = sizeof(*(sockaddr)); \
38 (addrinfo)->ai_canonname = (addrinfo)->_ai_canonname; \
39 (addrinfo)->_ai_canonname[0] = '\0'; \
40 (addrinfo)->ai_next = NULL; \
/Zephyr-latest/samples/net/cloud/tagoio_http_post/src/
Dsockets.c37 struct addrinfo *addr; in tagoio_connect()
38 struct addrinfo hints; in tagoio_connect()
/Zephyr-latest/drivers/net/
Dnsos_sockets.c1419 struct zsock_addrinfo addrinfo; member
1465 wrap->addrinfo.ai_flags = res_p->ai_flags; in addrinfo_from_nsos_mid()
1466 wrap->addrinfo.ai_family = res_p->ai_family; in addrinfo_from_nsos_mid()
1467 wrap->addrinfo.ai_socktype = res_p->ai_socktype; in addrinfo_from_nsos_mid()
1468 wrap->addrinfo.ai_protocol = res_p->ai_protocol; in addrinfo_from_nsos_mid()
1470 wrap->addrinfo.ai_addr = in addrinfo_from_nsos_mid()
1472 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()
1477 wrap->addrinfo.ai_canonname = in addrinfo_from_nsos_mid()
1479 wrap->addrinfo.ai_next = &wrap[1].addrinfo; in addrinfo_from_nsos_mid()
[all …]
Dnsos_adapt.c940 struct addrinfo *addrinfo; member
943 static int addrinfo_to_nsos_mid(struct addrinfo *res, in addrinfo_to_nsos_mid()
951 for (struct addrinfo *res_p = res; res_p; res_p = res_p->ai_next) { in addrinfo_to_nsos_mid()
964 for (struct addrinfo *res_p = res; res_p; res_p = res_p->ai_next, idx_res++) { in addrinfo_to_nsos_mid()
967 wrap->addrinfo = res_p; in addrinfo_to_nsos_mid()
1025 struct addrinfo hints; in nsos_adapt_getaddrinfo()
1026 struct addrinfo *res = NULL; in nsos_adapt_getaddrinfo()
1076 freeaddrinfo(wrap->addrinfo); in nsos_adapt_freeaddrinfo()
/Zephyr-latest/samples/net/sockets/big_http_download/src/
Dbig_http_download.c86 void dump_addrinfo(const struct addrinfo *ai) in dump_addrinfo()
253 bool download(struct addrinfo *ai, bool is_tls, bool *redirect) in download()
366 static struct addrinfo hints; in main()
367 struct addrinfo *res; in main()
/Zephyr-latest/samples/net/tftp_client/src/
Dtftp-client.c40 struct addrinfo *res, hints = {0}; in tftp_init()
/Zephyr-latest/include/zephyr/posix/
Dnetdb.h60 #define addrinfo zsock_addrinfo macro
/Zephyr-latest/samples/net/cloud/aws_iot_mqtt/src/
Dmain.c425 struct addrinfo *ai = NULL; in resolve_broker_addr()
427 const struct addrinfo hints = { in resolve_broker_addr()
/Zephyr-latest/samples/net/cloud/mqtt_azure/src/
Dmain.c54 static struct addrinfo hints;
55 static struct addrinfo *haddr;
/Zephyr-latest/samples/net/secure_mqtt_sensor_actuator/src/
Dmqtt_client.c440 struct addrinfo *result; in app_mqtt_init()
441 const struct addrinfo hints = { in app_mqtt_init()
/Zephyr-latest/modules/thrift/src/thrift/transport/
DTSSLSocket.h182 void openSecConnection(struct addrinfo *res);
DTSSLSocket.cpp109 void TSSLSocket::openSecConnection(struct addrinfo *res) in openSecConnection()
285 struct addrinfo hints, *res, *res0; in open()
/Zephyr-latest/tests/net/lib/dns_resolve/src/
Dmain.c70 static struct dns_addrinfo addrinfo; variable
167 &addrinfo, in sender_iface()