/external/ltp/testcases/network/lib6/ |
D | asapi_03.c | 197 struct sockaddr_in6 sin6; in sendall() local 210 memset(&sin6, 0, sizeof(sin6)); in sendall() 211 sin6.sin6_family = AF_INET6; in sendall() 212 sin6.sin6_addr = in6addr_loopback; in sendall() 215 msg.msg_name = &sin6; in sendall() 216 msg.msg_namelen = sizeof(sin6); in sendall() 242 struct sockaddr_in6 sin6; in so_test() local 257 memset(&sin6, 0, sizeof(sin6)); in so_test() 258 sin6.sin6_family = AF_INET6; in so_test() 259 sin6.sin6_addr = in6addr_loopback; in so_test() [all …]
|
D | in6_01.c | 86 struct sockaddr_in6 sin6; in test_sockaddr_in6() local 90 sin6.sin6_family = AF_INET6; in test_sockaddr_in6() 91 sin6.sin6_port = ui16; in test_sockaddr_in6() 92 sin6.sin6_flowinfo = ui32; in test_sockaddr_in6() 93 sin6.sin6_addr = in6; in test_sockaddr_in6() 94 sin6.sin6_scope_id = ui32; in test_sockaddr_in6() 97 bind(sd, (struct sockaddr *)&sin6, sizeof(sin6)); in test_sockaddr_in6()
|
D | asapi_02.c | 95 struct sockaddr_in6 sin6; in ic6_send1() local 105 memset(&sin6, 0, sizeof(sin6)); in ic6_send1() 106 sin6.sin6_family = AF_INET6; in ic6_send1() 107 sin6.sin6_addr = in6addr_loopback; in ic6_send1() 108 if (sendto(s, &ic6, sizeof(ic6), 0, (struct sockaddr *)&sin6, in ic6_send1() 109 sizeof(sin6)) == -1) { in ic6_send1()
|
/external/libevent/ |
D | evutil.c | 625 const struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)sa; in evutil_found_ifaddr() local 627 (unsigned char*)sin6->sin6_addr.s6_addr; in evutil_found_ifaddr() 734 struct sockaddr_in6 sin6, sin6_out; in evutil_check_interfaces() local 757 memset(&sin6, 0, sizeof(sin6)); in evutil_check_interfaces() 758 sin6.sin6_family = AF_INET6; in evutil_check_interfaces() 759 sin6.sin6_port = htons(53); in evutil_check_interfaces() 760 r = evutil_inet_pton(AF_INET6, "2001:4860:b002::68", &sin6.sin6_addr); in evutil_check_interfaces() 777 connect(fd, (struct sockaddr*)&sin6, sizeof(sin6)) == 0 && in evutil_check_interfaces() 994 struct sockaddr_in6 sin6; in evutil_getaddrinfo_common_() local 995 memset(&sin6, 0, sizeof(sin6)); in evutil_getaddrinfo_common_() [all …]
|
D | bufferevent_async.c | 624 struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)&ss; in bufferevent_async_connect_() local 625 sin6->sin6_family = AF_INET6; in bufferevent_async_connect_() 626 sin6->sin6_addr = in6addr_any; in bufferevent_async_connect_()
|
D | evdns.c | 370 struct sockaddr_in6 sin6; member 4396 struct sockaddr_in6 sin6; in evdns_getaddrinfo_gotresolve() local 4511 memset(&sin6, 0, sizeof(sin6)); in evdns_getaddrinfo_gotresolve() 4512 sin6.sin6_family = AF_INET6; in evdns_getaddrinfo_gotresolve() 4513 sin6.sin6_port = htons(data->port); in evdns_getaddrinfo_gotresolve() 4515 sa = (struct sockaddr *)&sin6; in evdns_getaddrinfo_gotresolve() 4516 socklen = sizeof(sin6); in evdns_getaddrinfo_gotresolve() 4518 addrp = &sin6.sin6_addr.s6_addr; in evdns_getaddrinfo_gotresolve()
|
/external/ipsec-tools/src/racoon/ |
D | grabmyaddr.c | 342 struct sockaddr_in6 *sin6; in grab_myaddrs() local 388 sin6 = (struct sockaddr_in6 *)p->addr; in grab_myaddrs() 389 if (IN6_IS_ADDR_LINKLOCAL(&sin6->sin6_addr) in grab_myaddrs() 390 || IN6_IS_ADDR_SITELOCAL(&sin6->sin6_addr)) { in grab_myaddrs() 391 sin6->sin6_scope_id = in grab_myaddrs() 392 ntohs(*(u_int16_t *)&sin6->sin6_addr.s6_addr[2]); in grab_myaddrs() 393 sin6->sin6_addr.s6_addr[2] = 0; in grab_myaddrs() 394 sin6->sin6_addr.s6_addr[3] = 0; in grab_myaddrs() 399 sin6 = (struct sockaddr_in6 *)p->addr; in grab_myaddrs() 400 if (IN6_IS_ADDR_LINKLOCAL(&sin6->sin6_addr) in grab_myaddrs() [all …]
|
D | sockmisc.c | 407 struct sockaddr_in6 *sin6; local 447 && otolen >= sizeof(*sin6)) { 449 *tolen = sizeof(*sin6); 450 sin6 = (struct sockaddr_in6 *)to; 451 memset(sin6, 0, sizeof(*sin6)); 452 sin6->sin6_family = AF_INET6; 454 sin6->sin6_len = sizeof(*sin6); 456 memcpy(&sin6->sin6_addr, &pi->ipi6_addr, 457 sizeof(sin6->sin6_addr)); 459 if (IN6_IS_ADDR_LINKLOCAL(&sin6->sin6_addr)) [all …]
|
D | sockmisc.h | 41 struct sockaddr_in6 sin6; member
|
/external/mdnsresponder/mDNSPosix/ |
D | mDNSUNP.c | 92 struct sockaddr_in6 *sin6; in get_ifi_info_linuxv6() local 156 sin6=calloc(1, sizeof(struct sockaddr_in6)); in get_ifi_info_linuxv6() 159 sin6->sin6_family=family; in get_ifi_info_linuxv6() 160 sin6->sin6_addr=*addrptr; in get_ifi_info_linuxv6() 161 sin6->sin6_scope_id=scope; in get_ifi_info_linuxv6() 162 memcpy(ifi->ifi_netmask, sin6, sizeof(struct sockaddr_in6)); in get_ifi_info_linuxv6() 163 free(sin6); in get_ifi_info_linuxv6() 649 struct sockaddr_in6 *sin6 = (struct sockaddr_in6*)&pktp->ipi_addr; in recvfrom_flags() local 652 sin6->sin6_family = AF_INET6; in recvfrom_flags() 654 sin6->sin6_len = sizeof(*sin6); in recvfrom_flags() [all …]
|
D | mDNSPosix.c | 133 struct sockaddr_in6 *sin6 = (struct sockaddr_in6*)sa; in SockAddrTomDNSAddr() local 135 assert(sin6->sin6_len == sizeof(*sin6)); in SockAddrTomDNSAddr() 138 ipAddr->ip.v6 = *(mDNSv6Addr*)&sin6->sin6_addr; in SockAddrTomDNSAddr() 139 if (ipPort) ipPort->NotAnInteger = sin6->sin6_port; in SockAddrTomDNSAddr() 192 struct sockaddr_in6 *sin6 = (struct sockaddr_in6*)&to; in mDNSPlatformSendUDP() local 193 mDNSPlatformMemZero(sin6, sizeof(*sin6)); in mDNSPlatformSendUDP() 195 sin6->sin6_len = sizeof(*sin6); in mDNSPlatformSendUDP() 197 sin6->sin6_family = AF_INET6; in mDNSPlatformSendUDP() 198 sin6->sin6_port = dstPort.NotAnInteger; in mDNSPlatformSendUDP() 199 sin6->sin6_addr = *(struct in6_addr*)&dst->ip.v6; in mDNSPlatformSendUDP()
|
/external/libevent/test/ |
D | regress_util.c | 265 struct sockaddr_in6 sin6; in regress_sockaddr_port_parse() local 266 memset(&sin6, 0, sizeof(sin6)); in regress_sockaddr_port_parse() 268 sin6.sin6_len = sizeof(sin6); in regress_sockaddr_port_parse() 270 sin6.sin6_family = AF_INET6; in regress_sockaddr_port_parse() 271 sin6.sin6_port = htons(ent->port); in regress_sockaddr_port_parse() 272 r = evutil_inet_pton(AF_INET6, ent->addr, &sin6.sin6_addr); in regress_sockaddr_port_parse() 275 } else if (memcmp(&sin6, &ss, sizeof(sin6))) { in regress_sockaddr_port_parse() 277 } else if (len != sizeof(sin6)) { in regress_sockaddr_port_parse() 843 struct sockaddr_in6 *sin6 = (struct sockaddr_in6*)ai->ai_addr; in test_ai_eq_() local 844 evutil_inet_ntop(AF_INET6, &sin6->sin6_addr, buf, sizeof(buf)); in test_ai_eq_() [all …]
|
/external/ltp/lib/ |
D | safe_net.c | 46 struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)sa; in tst_sock_addr() local 49 if (!inet_ntop(AF_INET6, &sin6->sin6_addr, res + 1, len - 1)) in tst_sock_addr() 52 if (ntohs(sin6->sin6_port) != 0) { in tst_sock_addr() 54 ntohs(sin6->sin6_port)); in tst_sock_addr() 99 struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)sa; in tst_getsockport() local 101 return ntohs(sin6->sin6_port); in tst_getsockport()
|
/external/boringssl/src/crypto/bio/ |
D | bio_test.cc | 72 struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *) &ss; in TEST() local 79 len = sizeof(*sin6); in TEST() 80 ASSERT_EQ(1, inet_pton(AF_INET6, "::1", &sin6->sin6_addr)) in TEST() 82 if (bind(listening_sock, (struct sockaddr *)sin6, sizeof(*sin6)) == -1) { in TEST() 103 ntohs(sin6->sin6_port)); in TEST()
|
/external/ipsec-tools/src/libipsec/ |
D | key_debug.c | 785 struct sockaddr_in6 *sin6; local 803 sin6 = (void *)addr; 804 printf(" port=%u\n", ntohs(sin6->sin6_port)); 806 sin6->sin6_flowinfo, sin6->sin6_scope_id); 807 ipsec_hexdump(&sin6->sin6_addr, sizeof(sin6->sin6_addr));
|
/external/honggfuzz/libhfcommon/ |
D | files.c | 467 struct sockaddr_in6* sin6 = (struct sockaddr_in6*)sa; in files_sockAddrToStr() local 468 if (inet_ntop(sin6->sin6_family, sin6->sin6_addr.s6_addr, str, sizeof(str))) { in files_sockAddrToStr() 469 util_ssnprintf(str, sizeof(str), "/%hd", ntohs(sin6->sin6_port)); in files_sockAddrToStr()
|
/external/android-clat/ |
D | translate.c | 475 static struct sockaddr_in6 sin6 = { AF_INET6, 0, 0, { { { 0, 0, 0, 0 } } }, 0 }; in send_rawv6() local 477 .msg_name = &sin6, in send_rawv6() 478 .msg_namelen = sizeof(sin6), in send_rawv6() 482 sin6.sin6_addr = ((struct ip6_hdr *)out[CLAT_POS_IPHDR].iov_base)->ip6_dst; in send_rawv6()
|
/external/libevent/sample/ |
D | dns-example.c | 95 struct sockaddr_in6 *sin6 = in gai_callback() local 97 evutil_inet_ntop(AF_INET6, &sin6->sin6_addr, buf, in gai_callback()
|
/external/kernel-headers/original/uapi/linux/ |
D | rxrpc.h | 30 struct sockaddr_in6 sin6; /* IPv6 transport address */ member
|
/external/python/cpython2/Modules/ |
D | socketmodule.c | 3412 struct sockaddr_in6 sin6; local 3413 memset(&sin6, 0, sizeof(sin6)); 3414 sin6.sin6_family = af; 3416 sin6.sin6_len = sizeof(sin6); 3418 memcpy(&sin6.sin6_addr, *pch, sizeof(sin6.sin6_addr)); 3419 tmp = makeipaddr((struct sockaddr *)&sin6, 3420 sizeof(sin6)); 3422 if (pch == h->h_addr_list && alen >= sizeof(sin6)) 3423 memcpy((char *) addr, &sin6, sizeof(sin6)); 4338 struct sockaddr_in6 *sin6; local [all …]
|
/external/iperf3/src/ |
D | iperf_sctp.c | 545 struct sockaddr_in6 *sin6; in iperf_sctp_bindx() local 578 sin6 = (struct sockaddr_in6 *)ai->ai_addr; in iperf_sctp_bindx() 579 eport = sin6->sin6_port; in iperf_sctp_bindx()
|
/external/boringssl/src/ssl/test/ |
D | bssl_shim.cc | 123 sockaddr_in6 *sin6 = (sockaddr_in6 *) &ss; in Connect() local 124 len = sizeof(*sin6); in Connect() 125 sin6->sin6_port = htons(port); in Connect() 126 if (!inet_pton(AF_INET6, "::1", &sin6->sin6_addr)) { in Connect()
|
/external/boringssl/src/tool/ |
D | transport_common.cc | 179 struct sockaddr_in6 *sin6 = in Connect() local 182 inet_ntop(result->ai_family, &sin6->sin6_addr, buf, sizeof(buf)), in Connect() 183 ntohs(sin6->sin6_port)); in Connect()
|
/external/wpa_supplicant_8/src/radius/ |
D | radius_server.c | 1814 struct sockaddr_in6 sin6; in radius_server_receive_auth() member 1840 if (inet_ntop(AF_INET6, &from.sin6.sin6_addr, abuf, in radius_server_receive_auth() 1843 from_port = ntohs(from.sin6.sin6_port); in radius_server_receive_auth() 1849 &from.sin6.sin6_addr, 1); in radius_server_receive_auth() 1944 struct sockaddr_in6 sin6; in radius_server_receive_acct() member 1972 if (inet_ntop(AF_INET6, &from.sin6.sin6_addr, abuf, in radius_server_receive_acct() 1975 from_port = ntohs(from.sin6.sin6_port); in radius_server_receive_acct() 1981 &from.sin6.sin6_addr, 1); in radius_server_receive_acct()
|
/external/python/cpython3/Modules/ |
D | socketmodule.c | 5361 struct sockaddr_in6 sin6; local 5362 memset(&sin6, 0, sizeof(sin6)); 5363 sin6.sin6_family = af; 5365 sin6.sin6_len = sizeof(sin6); 5367 memcpy(&sin6.sin6_addr, *pch, sizeof(sin6.sin6_addr)); 5368 tmp = make_ipv6_addr(&sin6); 5370 if (pch == h->h_addr_list && alen >= sizeof(sin6)) 5371 memcpy((char *) addr, &sin6, sizeof(sin6)); 6375 struct sockaddr_in6 *sin6; local 6376 sin6 = (struct sockaddr_in6 *)res->ai_addr; [all …]
|