Home
last modified time | relevance | path

Searched refs:ai_protocol (Results 1 – 16 of 16) sorted by relevance

/Zephyr-latest/samples/net/sockets/http_get/src/
Dhttp_get.c55 ai, ai->ai_family, ai->ai_socktype, ai->ai_protocol, in dump_addrinfo()
97 sock = socket(res->ai_family, res->ai_socktype, res->ai_protocol); in main()
/Zephyr-latest/samples/net/cloud/tagoio_http_post/src/
Dsockets.c47 hints.ai_protocol = IPPROTO_TCP; in tagoio_connect()
76 hints.ai_protocol); in tagoio_connect()
/Zephyr-latest/tests/net/socket/getaddrinfo/src/
Dmain.c302 zassert_equal(res->ai_protocol, IPPROTO_TCP, ""); in ZTEST()
311 zassert_equal(res->ai_protocol, IPPROTO_TCP, ""); in ZTEST()
321 zassert_equal(res->ai_protocol, IPPROTO_UDP, ""); in ZTEST()
352 zassert_equal(res->ai_protocol, IPPROTO_TCP, ""); in ZTEST()
383 zassert_equal(res->ai_protocol, IPPROTO_TCP, ""); in ZTEST()
415 zassert_equal(res->ai_protocol, IPPROTO_UDP, ""); in ZTEST()
618 zassert_equal(res->ai_protocol, IPPROTO_TCP, ""); in ZTEST()
633 zassert_equal(res->ai_protocol, IPPROTO_TCP, ""); in ZTEST()
648 zassert_equal(res->ai_protocol, IPPROTO_UDP, ""); in ZTEST()
662 zassert_equal(res->ai_protocol, IPPROTO_UDP, ""); in ZTEST()
/Zephyr-latest/subsys/net/lib/sockets/
Dgetaddrinfo.c101 ai->ai_protocol = (socktype == SOCK_DGRAM) ? IPPROTO_UDP : IPPROTO_TCP; in dns_resolve_cb()
210 res->ai_protocol = IPPROTO_UDP; in getaddrinfo_null_host()
213 res->ai_protocol = IPPROTO_TCP; in getaddrinfo_null_host()
399 res->ai_protocol = protocol; in try_resolve_literal_addr()
/Zephyr-latest/subsys/net/lib/sntp/
Dsntp_simple.c95 hints.ai_protocol = 0; in sntp_simple()
/Zephyr-latest/tests/posix/headers/src/
Dnetdb_h.c47 zassert_not_equal(-1, offsetof(struct addrinfo, ai_protocol)); in ZTEST()
/Zephyr-latest/drivers/wifi/simplelink/
Dsimplelink_sockets.c1019 ai->ai_protocol = (sl_ai->ai_protocol == SLNETSOCK_PROTO_UDP ? in set_addr_info()
1094 if (hints->ai_protocol == 0) { in simplelink_getaddrinfo()
1095 sl_hints.ai_protocol = 0; in simplelink_getaddrinfo()
1097 sl_hints.ai_protocol = in simplelink_getaddrinfo()
1098 (hints->ai_protocol == IPPROTO_UDP ? in simplelink_getaddrinfo()
/Zephyr-latest/samples/net/sockets/big_http_download/src/
Dbig_http_download.c90 ai, ai->ai_family, ai->ai_socktype, ai->ai_protocol, in dump_addrinfo()
271 sock = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol); in download()
/Zephyr-latest/drivers/net/
Dnsos.h108 int ai_protocol; member
Dnsos_adapt.c981 ret = socket_proto_to_nsos_mid(res_p->ai_protocol, &wrap->addrinfo_mid.ai_protocol); in addrinfo_to_nsos_mid()
1044 ret = socket_proto_from_nsos_mid(hints_mid->ai_protocol, &hints.ai_protocol); in nsos_adapt_getaddrinfo()
Dnsos_sockets.c1468 wrap->addrinfo.ai_protocol = res_p->ai_protocol; in addrinfo_from_nsos_mid()
1506 hints_mid.ai_protocol = hints->ai_protocol; in nsos_getaddrinfo()
/Zephyr-latest/include/zephyr/net/
Dsocket.h281 int ai_protocol; /**< Protocol for addresses, 0 means any protocol */ member
/Zephyr-latest/samples/net/cloud/aws_iot_mqtt/src/
Dmain.c430 .ai_protocol = 0, in resolve_broker_addr()
/Zephyr-latest/samples/net/cloud/mqtt_azure/src/
Dmain.c400 hints.ai_protocol = 0; in get_mqtt_broker_addrinfo()
/Zephyr-latest/drivers/wifi/eswifi/
Deswifi_socket_offload.c721 ai->ai_protocol = ai->ai_socktype == SOCK_STREAM ? IPPROTO_TCP : IPPROTO_UDP; in eswifi_off_getaddrinfo()
/Zephyr-latest/subsys/shell/backends/
Dshell_mqtt.c136 .ai_protocol = 0 }; in get_mqtt_broker_addrinfo()