Home
last modified time | relevance | path

Searched refs:addr_info (Results 1 – 21 of 21) sorted by relevance

/third_party/musl/src/network/
Dres_cache.c68 struct addr_info_wrapper addr_info[MAX_RESULTS] = {0}; in dns_get_addr_info_from_netsys_cache() local
71 int ret = func(0, param, addr_info, &num); in dns_get_addr_info_from_netsys_cache()
84 int canon_len = (int) strlen(addr_info[0].ai_canonName); in dns_get_addr_info_from_netsys_cache()
92 memcpy(outcanon, addr_info[0].ai_canonName, canon_len + 1); in dns_get_addr_info_from_netsys_cache()
98 .ai_flags = (int) addr_info[i].ai_flags, in dns_get_addr_info_from_netsys_cache()
99 .ai_family = (int) addr_info[i].ai_family, in dns_get_addr_info_from_netsys_cache()
100 .ai_socktype = (int) addr_info[i].ai_sockType, in dns_get_addr_info_from_netsys_cache()
101 .ai_protocol = (int) addr_info[i].ai_protocol, in dns_get_addr_info_from_netsys_cache()
102 .ai_addrlen = (socklen_t) addr_info[i].ai_addrLen, in dns_get_addr_info_from_netsys_cache()
106 memcpy(&out[i].sa, &addr_info[i].ai_addr, addr_info[i].ai_addrLen); in dns_get_addr_info_from_netsys_cache()
Dlookup.h111 struct addr_info_wrapper addr_info[static MAX_RESULTS],
/third_party/libcoap/src/
Dcoap_io_riot.c56 &session->addr_info.remote.addr.sa, in coap_network_send()
57 session->addr_info.remote.size); in coap_network_send()
112 packet->addr_info.remote.size = sizeof(struct sockaddr_in6); in coap_network_read()
113 memset(&packet->addr_info.remote.addr, 0, in coap_network_read()
114 sizeof(packet->addr_info.remote.addr)); in coap_network_read()
115 packet->addr_info.remote.addr.sin6.sin6_family = AF_INET6; in coap_network_read()
116 memcpy(&packet->addr_info.remote.addr.sin6.sin6_addr, in coap_network_read()
118 memcpy(&packet->addr_info.remote.addr.sin6.sin6_port, in coap_network_read()
121 packet->addr_info.local.size = sizeof(struct sockaddr_in6); in coap_network_read()
122 memset(&packet->addr_info.local.addr, 0, sizeof(packet->addr_info.local.addr)); in coap_network_read()
[all …]
Dcoap_io.c678 const void *addr = &session->addr_info.remote.addr;
689 mhdr.msg_namelen = session->addr_info.remote.size;
694 if (!coap_address_isany(&session->addr_info.local) &&
695 !coap_is_mcast(&session->addr_info.local))
696 switch (session->addr_info.local.addr.sa.sa_family) {
701 if (IN6_IS_ADDR_V4MAPPED(&session->addr_info.local.addr.sin6.sin6_addr)) {
716 session->addr_info.local.addr.sin6.sin6_addr.s6_addr + 12,
728 session->addr_info.local.addr.sin6.sin6_addr.s6_addr + 12,
745 &session->addr_info.local.addr.sin6.sin6_addr,
768 &session->addr_info.local.addr.sin.sin_addr,
[all …]
Dcoap_io_lwip.c76 memset(&packet->addr_info, 0, sizeof(packet->addr_info)); in coap_recv()
77 packet->addr_info.remote.port = port; in coap_recv()
78 packet->addr_info.remote.addr = *addr; in coap_recv()
79 packet->addr_info.local.port = upcb->local_port; in coap_recv()
80 packet->addr_info.local.addr = *ip_current_dest_addr(); in coap_recv()
162 udp_sendto(sock->pcb, pdu->pbuf, &session->addr_info.remote.addr, in coap_socket_send_pdu()
163 session->addr_info.remote.port); in coap_socket_send_pdu()
Dcoap_session.c133 coap_address_copy(&session->addr_info.local, local_addr); in coap_make_session()
135 coap_address_init(&session->addr_info.local); in coap_make_session()
137 coap_address_copy(&session->addr_info.remote, remote_addr); in coap_make_session()
139 coap_address_init(&session->addr_info.remote); in coap_make_session()
605 coap_address_ntop(&(packet->addr_info.remote), srcbuf, INET6_ADDRSTRLEN); in is_loopback_packet()
612 const coap_addr_tuple_t *addr_info) { in coap_make_addr_hash() argument
614 coap_address_copy(&addr_hash->remote, &addr_info->remote); in coap_make_addr_hash()
615 addr_hash->lport = coap_address_get_port(&addr_info->local); in coap_make_addr_hash()
635 coap_make_addr_hash(&addr_hash, endpoint->proto, &packet->addr_info); in coap_endpoint_get_session()
639 coap_address_copy(&session->addr_info.local, &packet->addr_info.local); in coap_endpoint_get_session()
[all …]
Dnet.c834 &session->sock, &session->addr_info.local, &session->addr_info.remote, in coap_send_pdu()
837 &session->addr_info.local, &session->addr_info.remote in coap_send_pdu()
1169 if (coap_print_addr(&session->addr_info.local, (uint8_t*)addr_str, in coap_send_internal()
1455 if (coap_socket_connect_tcp2(&session->sock, &session->addr_info.local, in coap_connect_session()
1456 &session->addr_info.remote)) { in coap_connect_session()
1555 memcpy(&packet->addr_info, &session->addr_info, sizeof(packet->addr_info)); in coap_read_session()
1567 memcpy(&session->addr_info, &packet->addr_info, in coap_read_session()
1568 sizeof(session->addr_info)); in coap_read_session()
1701 memset(&packet->addr_info, 0, sizeof(packet->addr_info)); in coap_read_endpoint()
1702 coap_address_init(&packet->addr_info.remote); in coap_read_endpoint()
[all …]
Dcoap_tinydtls.c484 put_session_addr(&session->addr_info.remote, dtls_session); in coap_dtls_new_session()
659 put_session_addr(&session->addr_info.remote, &dtls_session); in coap_dtls_hello()
Dcoap_gnutls.c2528 &c_session->addr_info, in coap_dtls_hello()
2529 sizeof(c_session->addr_info), in coap_dtls_hello()
2535 &c_session->addr_info, in coap_dtls_hello()
2536 sizeof(c_session->addr_info), in coap_dtls_hello()
Dcoap_openssl.c391 (const uint8_t*)&data->session->addr_info.local.addr, in coap_dtls_generate_cookie()
392 (size_t)data->session->addr_info.local.size); in coap_dtls_generate_cookie()
394 (const uint8_t*)&data->session->addr_info.remote.addr, in coap_dtls_generate_cookie()
395 (size_t)data->session->addr_info.remote.size); in coap_dtls_generate_cookie()
Dcoap_mbedtls.c1850 (unsigned char *)&c_session->addr_info.remote, in coap_dtls_hello()
1851 sizeof(c_session->addr_info.remote))) != 0) { in coap_dtls_hello()
Dresource.c1108 if (coap_print_addr(&obs->session->addr_info.remote,
/third_party/ltp/testcases/network/stress/ns-tools/
Dns-udpsender.c63 struct addrinfo addr_info; member
362 memcpy(&(udp_p->addr_info), res, sizeof(struct addrinfo)); in create_udp_datagram()
398 udp_p->addr_info.ai_addr, in send_udp_datagram()
399 udp_p->addr_info.ai_addrlen); in send_udp_datagram()
/third_party/ltp/lib/
Dtst_net.c211 struct addrinfo **addr_info) in safe_getaddrinfo() argument
213 int err = getaddrinfo(src_addr, port, hints, addr_info); in safe_getaddrinfo()
220 if (!*addr_info) in safe_getaddrinfo()
/third_party/libcoap/include/coap3/
Dcoap_io_internal.h156 coap_addr_tuple_t addr_info; /**< local and remote addresses */ member
162 coap_addr_tuple_t addr_info; /**< local and remote addresses */ member
Dcoap_session_internal.h58 coap_addr_tuple_t addr_info; /**< key: remote/local address info */ member
/third_party/ltp/include/
Dtst_safe_net.h79 #define SAFE_GETADDRINFO(src_addr, port, hints, addr_info) \ argument
80 safe_getaddrinfo(__FILE__, __LINE__, src_addr, port, hints, addr_info)
Dtst_net.h33 struct addrinfo **addr_info);
/third_party/libnl/tests/
Dcheck-addr.c184 START_TEST(addr_info) in START_TEST() argument
210 tcase_add_test(tc_addr, addr_info); in make_nl_addr_suite()
/third_party/python/Lib/asyncio/
Dbase_events.py930 async def _connect_sock(self, exceptions, addr_info, local_addr_infos=None): argument
934 family, type_, proto, _, address = addr_info
/third_party/mesa3d/src/intel/vulkan/
Danv_device.c3688 const VkMemoryOpaqueCaptureAddressAllocateInfoKHR *addr_info = in anv_AllocateMemory() local
3690 client_address = addr_info->opaqueCaptureAddress; in anv_AllocateMemory()