Home
last modified time | relevance | path

Searched refs:addr6 (Results 1 – 25 of 38) sorted by relevance

12

/external/c-ares/
Dares_getnameinfo.c69 struct sockaddr_in6 addr6; member
89 static void append_scopeid(struct sockaddr_in6 *addr6, unsigned int scopeid,
99 struct sockaddr_in6 *addr6 = NULL; in ares_getnameinfo() local
113 addr6 = (struct sockaddr_in6 *)sa; in ares_getnameinfo()
114 port = addr6->sin6_port; in ares_getnameinfo()
158 ares_inet_ntop(AF_INET6, &addr6->sin6_addr, ipbuf, IPBUFSIZ); in ares_getnameinfo()
161 append_scopeid(addr6, flags, ipbuf, sizeof(ipbuf)); in ares_getnameinfo()
199 memcpy(&niquery->addr.addr6, addr6, sizeof(struct ares_in6_addr)); in ares_getnameinfo()
200 ares_gethostbyaddr(channel, &addr6->sin6_addr, in ares_getnameinfo()
225 service = lookup_service(niquery->addr.addr6.sin6_port, in nameinfo_callback()
[all …]
Dahost.c72 struct ares_in6_addr addr6; in main() local
131 else if (ares_inet_pton(AF_INET6, *argv, &addr6) == 1) in main()
133 ares_gethostbyaddr(channel, &addr6, sizeof(addr6), AF_INET6, callback, in main()
Dares_private.h120 struct ares_in6_addr addr6; member
124 #define addrV6 addr.addr6
228 struct ares_in6_addr addr6; member
233 struct ares_in6_addr addr6; member
Dadig.c259 else if (ares_inet_pton(AF_INET6, optarg, &srvr->addr.addr6) > 0) in main()
279 memcpy(&srvr->addr.addr6, hostent->h_addr, in main()
280 sizeof(srvr->addr.addr6)); in main()
/external/android-clat/
Dtranslate.c65 int is_in_plat_subnet(const struct in6_addr *addr6) { in is_in_plat_subnet() argument
67 return (addr6 != NULL) && (memcmp(addr6, &Global_Clatd_Config.plat_subnet, 12) == 0); in is_in_plat_subnet()
75 uint32_t ipv6_addr_to_ipv4_addr(const struct in6_addr *addr6) { in ipv6_addr_to_ipv4_addr() argument
76 if (is_in_plat_subnet(addr6)) { in ipv6_addr_to_ipv4_addr()
78 return addr6->s6_addr32[3]; in ipv6_addr_to_ipv4_addr()
79 } else if (IN6_ARE_ADDR_EQUAL(addr6, &Global_Clatd_Config.ipv6_local_subnet)) { in ipv6_addr_to_ipv4_addr()
93 struct in6_addr addr6; in ipv4_addr_to_ipv6_addr() local
100 addr6 = Global_Clatd_Config.plat_subnet; in ipv4_addr_to_ipv6_addr()
101 addr6.s6_addr32[3] = addr4; in ipv4_addr_to_ipv6_addr()
102 return addr6; in ipv4_addr_to_ipv6_addr()
Dtranslate.h42 int is_in_plat_subnet(const struct in6_addr *addr6);
/external/fio/engines/
Dnet.c32 struct sockaddr_in6 addr6; member
536 to = (struct sockaddr *) &nd->addr6; in fio_netio_send()
537 len = sizeof(nd->addr6); in fio_netio_send()
603 from = (struct sockaddr *) &nd->addr6; in fio_netio_recv()
604 *len = sizeof(nd->addr6); in fio_netio_recv()
802 socklen_t len = sizeof(nd->addr6); in fio_netio_connect()
804 if (connect(f->fd, (struct sockaddr *) &nd->addr6, len) < 0) { in fio_netio_connect()
850 socklen = sizeof(nd->addr6); in fio_netio_accept()
851 f->fd = accept(nd->listenfd, (struct sockaddr *) &nd->addr6, &socklen); in fio_netio_accept()
888 to = (struct sockaddr *) &nd->addr6; in fio_netio_send_close()
[all …]
/external/webrtc/webrtc/base/
Dipaddress_unittest.cc347 IPAddress addr6(kIPv6PublicAddr); in TEST() local
351 EXPECT_TRUE(addr4 == addr6); in TEST()
352 EXPECT_TRUE(addr6 == addr4); in TEST()
355 EXPECT_FALSE(addr6 == addr5); in TEST()
356 EXPECT_FALSE(addr5 == addr6); in TEST()
361 EXPECT_FALSE(addr == addr6); in TEST()
364 EXPECT_FALSE(addr6 == addr); in TEST()
367 EXPECT_FALSE(addr2 == addr6); in TEST()
370 EXPECT_FALSE(addr6 == addr2); in TEST()
373 EXPECT_FALSE(addr3 == addr6); in TEST()
[all …]
Dipaddress.cc259 in6_addr addr6; in IPFromString() local
260 if (rtc::inet_pton(AF_INET6, str.c_str(), &addr6) == 0) { in IPFromString()
264 *out = IPAddress(addr6); in IPFromString()
/external/curl/lib/
Dcurl_addrinfo.c273 struct sockaddr_in6 *addr6; in Curl_he2ai() local
340 addr6 = (void *)ai->ai_addr; /* storage area for this info */ in Curl_he2ai()
342 memcpy(&addr6->sin6_addr, curr, sizeof(struct in6_addr)); in Curl_he2ai()
343 addr6->sin6_family = (unsigned short)(he->h_addrtype); in Curl_he2ai()
344 addr6->sin6_port = htons((unsigned short)port); in Curl_he2ai()
/external/ipsec-tools/src/racoon/
Dprsa_tok.l55 addr6 (::({word6}|{addr4})?|({word6}:)+:?({word6}|{addr4})?)
85 {addr6} { prsalval.chr = strdup(prsatext); return ADDR6; }
Dprsa_par.y151 %type <naddr> addr4 addr6 addr
227 | addr6
257 addr6:
/external/tcpdump/
Dprint-dhcp6.c792 struct in6_addr addr6; in dhcp6_print() local
796 memcpy(&addr6, dh6relay->dh6relay_linkaddr, sizeof (addr6)); in dhcp6_print()
797 ND_PRINT((ndo, "linkaddr=%s", ip6addr_string(ndo, &addr6))); in dhcp6_print()
799 memcpy(&addr6, dh6relay->dh6relay_peeraddr, sizeof (addr6)); in dhcp6_print()
800 ND_PRINT((ndo, " peeraddr=%s", ip6addr_string(ndo, &addr6))); in dhcp6_print()
Daddrtoname.c107 struct sockaddr_in6 addr6; in win32_gethostbyaddr() local
115 memset(&addr6, 0, sizeof(addr6)); in win32_gethostbyaddr()
116 addr6.sin6_family = AF_INET6; in win32_gethostbyaddr()
117 memcpy(&addr6.sin6_addr, addr, len); in win32_gethostbyaddr()
118 if (getnameinfo((struct sockaddr *)&addr6, sizeof(addr6), in win32_gethostbyaddr()
/external/toybox/toys/pending/
Ddhcp6.c279 struct sockaddr_in6 addr6; in send_msg() local
282 memset(&addr6, 0, sizeof(addr6)); in send_msg()
283 addr6.sin6_family = AF_INET6; in send_msg()
284 addr6.sin6_port = htons(DHCPC_SERVER_PORT); //SERVER_PORT in send_msg()
285 inet_pton(AF_INET6, "ff02::1:2", &addr6.sin6_addr); in send_msg()
300 sendlength = sendto(TT.sock1, &mesg, sendlength , 0,(struct sockaddr *)&addr6, in send_msg()
Ddhcpd.c775 struct sockaddr_in6 addr6; in open_listensock6() local
795 memset(&addr6, 0, sizeof(addr6)); in open_listensock6()
796 addr6.sin6_family = AF_INET6; in open_listensock6()
797 addr6.sin6_port = htons(gconfig.port); //SERVER_PORT in open_listensock6()
798 addr6.sin6_scope_id = if_nametoindex(gconfig.interface); in open_listensock6()
800 inet_pton(AF_INET6, "ff02::1:2", &addr6.sin6_addr); in open_listensock6()
802 if (bind(gstate.listensock, (struct sockaddr *) &addr6, sizeof(addr6)) == -1) { in open_listensock6()
809 memcpy(&mreq.ipv6mr_multiaddr, &addr6.sin6_addr, sizeof(addr6.sin6_addr)); in open_listensock6()
/external/deqp/framework/delibs/deutil/
DdeSocket.c354 struct sockaddr_in6* addr6 = (struct sockaddr_in6*)bsdAddr; in deSocketAddressToBsdAddress() local
362 addr6->sin6_port = deHostToNetworkOrder16((deUint16)address->port); in deSocketAddressToBsdAddress()
363 addr6->sin6_family = AF_INET6; in deSocketAddressToBsdAddress()
393 const struct sockaddr_in6* addr6 = (const struct sockaddr_in6*)bsdAddr; in deBsdAddressToSocketAddress() local
398 deSocketAddress_setPort(address, (int)deNetworkToHostOrder16((deUint16)addr6->sin6_port)); in deBsdAddressToSocketAddress()
402 inet_ntop(AF_INET6, (void*)&addr6->sin6_addr, buf, sizeof(buf)); in deBsdAddressToSocketAddress()
/external/libmicrohttpd/src/examples/
Dspdy_event_loop.c84 struct sockaddr_in6 * addr6 = (struct sockaddr_in6 *) addr; in new_session_callback() local
85 if(NULL == inet_ntop(AF_INET6, &(addr6->sin6_addr), ipstr, sizeof(ipstr))) in new_session_callback()
90 printf("New connection from: %s:%i\n", ipstr, ntohs(addr6->sin6_port)); in new_session_callback()
/external/wpa_supplicant_8/src/radius/
Dradius_server.c102 struct in6_addr addr6; member
418 struct in6_addr *addr6; in radius_server_get_client() local
421 addr6 = (struct in6_addr *) addr; in radius_server_get_client()
423 if ((addr6->s6_addr[i] & in radius_server_get_client()
425 (client->addr6.s6_addr[i] & in radius_server_get_client()
1539 struct in6_addr addr6; in radius_server_read_clients() local
1604 if (ipv6 && inet_pton(AF_INET6, buf, &addr6) <= 0) { in radius_server_read_clients()
1612 os_memset(addr6.s6_addr, 0, 10); in radius_server_read_clients()
1613 addr6.s6_addr[10] = 0xff; in radius_server_read_clients()
1614 addr6.s6_addr[11] = 0xff; in radius_server_read_clients()
[all …]
/external/dhcpcd-6.8.2/
Dif-linux.c588 struct in6_addr addr6; in link_addr() local
634 memset(&addr6, 0, sizeof(addr6)); in link_addr()
638 memcpy(&addr6.s6_addr, RTA_DATA(rta), in link_addr()
639 sizeof(addr6.s6_addr)); in link_addr()
645 &addr6, ifa->ifa_prefixlen, ifa->ifa_flags); in link_addr()
696 struct in6_addr addr6; in link_neigh() local
716 memset(&addr6, 0, sizeof(addr6)); in link_neigh()
720 memcpy(&addr6.s6_addr, RTA_DATA(rta), in link_neigh()
721 sizeof(addr6.s6_addr)); in link_neigh()
726 ipv6nd_neighbour(ctx, &addr6, flags); in link_neigh()
/external/fio/
Dclient.h34 struct sockaddr_in6 addr6; member
Dclient.c275 &client->addr6.sin6_addr)) in fio_client_add_explicit()
352 &client->addr6.sin6_addr, in fio_client_add()
376 from = inet_ntop(AF_INET6, (struct sockaddr *) &client->addr6.sin6_addr, buf, bufsize); in server_name()
414 client->addr6.sin6_family = AF_INET6; in fio_client_connect_ip()
415 client->addr6.sin6_port = htons(client->port); in fio_client_connect_ip()
417 addr = (struct sockaddr *) &client->addr6; in fio_client_connect_ip()
418 socklen = sizeof(client->addr6); in fio_client_connect_ip()
/external/mdnsresponder/mDNSPosix/
DmDNSUNP.c90 char addr6[32+7+1]; /* don't forget the seven ':' */ in get_ifi_info_linuxv6() local
131 sprintf(addr6, "%s:%s:%s:%s:%s:%s:%s:%s", in get_ifi_info_linuxv6()
139 err = getaddrinfo(addr6, NULL, &hints, &res0); in get_ifi_info_linuxv6()
/external/libmicrohttpd/src/testspdy/
Dtest_new_connection.c858 struct sockaddr_in6 * addr6 = (struct sockaddr_in6 *) addr; in new_session_callback() local
859 if(NULL == inet_ntop(AF_INET6, &(addr6->sin6_addr), ipstr, sizeof(ipstr))) in new_session_callback()
863 printf("New connection from: %s:%i\n", ipstr, ntohs(addr6->sin6_port)); in new_session_callback()
/external/libmicrohttpd/src/microspdy/
Dsession.c1398 struct sockaddr_in6 addr6; in SPDYF_session_accept() local
1400 addr = (struct sockaddr *)&addr6; in SPDYF_session_accept()
1401 addr_len = sizeof(addr6); in SPDYF_session_accept()
1406 addr_len = sizeof(addr6); in SPDYF_session_accept()

12