/external/libnl/tests/ |
D | check-addr.c | 143 struct nl_addr *addr6, *clone; in START_TEST() local 149 fail_if(nl_addr_parse(addr_str, AF_INET, &addr6) == 0, in START_TEST() 152 fail_if(nl_addr_parse(addr_str, AF_UNSPEC, &addr6) != 0, in START_TEST() 155 fail_if(nl_addr_get_family(addr6) != AF_INET6, in START_TEST() 158 fail_if(nl_addr_get_prefixlen(addr6) != 64, in START_TEST() 161 fail_if(nl_addr_iszero(addr6), in START_TEST() 164 clone = nl_addr_clone(addr6); in START_TEST() 168 fail_if(nl_addr_cmp(addr6, clone) != 0, in START_TEST() 171 fail_if(nl_addr_fill_sockaddr(addr6, (struct sockaddr *) &sin, &len) != 0, in START_TEST() 174 fail_if(strcmp(nl_addr2str(addr6, buf, sizeof(buf)), addr_str), in START_TEST() [all …]
|
/external/ltp/lib/ |
D | tst_net.c | 37 struct sockaddr_in6 *addr6 = (struct sockaddr_in6 *)addr; in tst_get_unused_port() local 48 addr6->sin6_family = AF_INET6; in tst_get_unused_port() 49 addr6->sin6_port = 0; in tst_get_unused_port() 50 addr6->sin6_addr = in6addr_any; in tst_get_unused_port() 51 slen = sizeof(*addr6); in tst_get_unused_port() 85 return addr6->sin6_port; in tst_get_unused_port()
|
/external/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/lib/ |
D | librpc-tirpc.c | 31 struct sockaddr_in6 *addr6 = (struct sockaddr_in6 *)&addr; in bound_socket() local 43 addr6->sin6_family = AF_INET6; in bound_socket() 44 addr6->sin6_port = 0; in bound_socket() 45 addr6->sin6_addr = in6addr_any; in bound_socket() 46 slen = sizeof(*addr6); in bound_socket()
|
/external/android-clat/ |
D | translate.c | 65 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()
|
/external/fio/engines/ |
D | net.c | 33 struct sockaddr_in6 addr6; member 539 to = (struct sockaddr *) &nd->addr6; in fio_netio_send() 540 len = sizeof(nd->addr6); in fio_netio_send() 606 from = (struct sockaddr *) &nd->addr6; in fio_netio_recv() 607 *len = sizeof(nd->addr6); in fio_netio_recv() 805 socklen_t len = sizeof(nd->addr6); in fio_netio_connect() 807 if (connect(f->fd, (struct sockaddr *) &nd->addr6, len) < 0) { in fio_netio_connect() 853 socklen = sizeof(nd->addr6); in fio_netio_accept() 854 f->fd = accept(nd->listenfd, (struct sockaddr *) &nd->addr6, &socklen); in fio_netio_accept() 891 to = (struct sockaddr *) &nd->addr6; in fio_netio_send_close() [all …]
|
/external/curl/lib/ |
D | curl_addrinfo.c | 280 struct sockaddr_in6 *addr6; in Curl_he2ai() local 350 addr6 = (void *)ai->ai_addr; /* storage area for this info */ in Curl_he2ai() 352 memcpy(&addr6->sin6_addr, curr, sizeof(struct in6_addr)); in Curl_he2ai() 353 addr6->sin6_family = (unsigned short)(he->h_addrtype); in Curl_he2ai() 354 addr6->sin6_port = htons((unsigned short)port); in Curl_he2ai() 601 struct sockaddr_in6 *addr6; in Curl_addrinfo_set_port() local 612 addr6 = (void *)ca->ai_addr; /* storage area for this info */ in Curl_addrinfo_set_port() 613 addr6->sin6_port = htons((unsigned short)port); in Curl_addrinfo_set_port()
|
/external/webrtc/webrtc/base/ |
D | ipaddress_unittest.cc | 347 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 …]
|
D | ipaddress.cc | 259 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/linux-kselftest/tools/testing/selftests/net/ |
D | reuseport_dualstack.c | 35 struct sockaddr_in6 *addr6; in build_rcv_fd() local 46 addr6 = (struct sockaddr_in6 *)&addr; in build_rcv_fd() 47 addr6->sin6_family = AF_INET6; in build_rcv_fd() 48 addr6->sin6_addr = in6addr_any; in build_rcv_fd() 49 addr6->sin6_port = htons(PORT); in build_rcv_fd()
|
D | reuseaddr_conflict.c | 31 struct sockaddr_in6 addr6 = { in open_port() local 44 addr = (struct sockaddr*)&addr6; in open_port() 45 addrlen = sizeof(addr6); in open_port()
|
D | reuseport_bpf_numa.c | 32 struct sockaddr_in6 *addr6; in build_rcv_group() local 44 addr6 = (struct sockaddr_in6 *)&addr; in build_rcv_group() 45 addr6->sin6_family = AF_INET6; in build_rcv_group() 46 addr6->sin6_addr = in6addr_any; in build_rcv_group() 47 addr6->sin6_port = htons(PORT); in build_rcv_group()
|
D | reuseport_bpf_cpu.c | 38 struct sockaddr_in6 *addr6; in build_rcv_group() local 50 addr6 = (struct sockaddr_in6 *)&addr; in build_rcv_group() 51 addr6->sin6_family = AF_INET6; in build_rcv_group() 52 addr6->sin6_addr = in6addr_any; in build_rcv_group() 53 addr6->sin6_port = htons(PORT); in build_rcv_group()
|
D | reuseport_bpf.c | 48 struct sockaddr_in6 *addr6; in new_any_sockaddr() local 61 addr6 = (struct sockaddr_in6 *)addr; in new_any_sockaddr() 62 addr6->sin6_family = AF_INET6; in new_any_sockaddr() 63 addr6->sin6_addr = in6addr_any; in new_any_sockaddr() 64 addr6->sin6_port = htons(port); in new_any_sockaddr() 76 struct sockaddr_in6 *addr6; in new_loopback_sockaddr() local 84 addr6 = (struct sockaddr_in6 *)addr; in new_loopback_sockaddr() 85 addr6->sin6_addr = in6addr_loopback; in new_loopback_sockaddr()
|
D | msg_zerocopy.c | 264 struct sockaddr_in6 *addr6 = (void *) sockaddr; in setup_sockaddr() local 275 addr6->sin6_family = AF_INET6; in setup_sockaddr() 276 addr6->sin6_port = htons(cfg_port); in setup_sockaddr() 277 if (inet_pton(AF_INET6, str_addr, &(addr6->sin6_addr)) != 1) in setup_sockaddr()
|
/external/tcpdump/ |
D | print-dhcp6.c | 814 struct in6_addr addr6; in dhcp6_print() local 818 memcpy(&addr6, dh6relay->dh6relay_linkaddr, sizeof (addr6)); in dhcp6_print() 819 ND_PRINT((ndo, "linkaddr=%s", ip6addr_string(ndo, &addr6))); in dhcp6_print() 821 memcpy(&addr6, dh6relay->dh6relay_peeraddr, sizeof (addr6)); in dhcp6_print() 822 ND_PRINT((ndo, " peeraddr=%s", ip6addr_string(ndo, &addr6))); in dhcp6_print()
|
D | addrtoname.c | 108 struct sockaddr_in6 addr6; in win32_gethostbyaddr() local 116 memset(&addr6, 0, sizeof(addr6)); in win32_gethostbyaddr() 117 addr6.sin6_family = AF_INET6; in win32_gethostbyaddr() 118 memcpy(&addr6.sin6_addr, addr, len); in win32_gethostbyaddr() 119 if (getnameinfo((struct sockaddr *)&addr6, sizeof(addr6), in win32_gethostbyaddr()
|
/external/ipsec-tools/src/racoon/ |
D | prsa_tok.l | 55 addr6 (::({word6}|{addr4})?|({word6}:)+:?({word6}|{addr4})?) 85 {addr6} { prsalval.chr = strdup(prsatext); return ADDR6; }
|
D | prsa_par.y | 151 %type <naddr> addr4 addr6 addr 227 | addr6 257 addr6:
|
/external/toybox/toys/pending/ |
D | dhcp6.c | 279 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()
|
/external/deqp/framework/delibs/deutil/ |
D | deSocket.c | 354 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/ |
D | spdy_event_loop.c | 84 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/ |
D | radius_server.c | 107 struct in6_addr addr6; member 425 struct in6_addr *addr6; in radius_server_get_client() local 428 addr6 = (struct in6_addr *) addr; in radius_server_get_client() 430 if ((addr6->s6_addr[i] & in radius_server_get_client() 432 (client->addr6.s6_addr[i] & in radius_server_get_client() 1547 struct in6_addr addr6; in radius_server_read_clients() local 1612 if (ipv6 && inet_pton(AF_INET6, buf, &addr6) <= 0) { in radius_server_read_clients() 1620 os_memset(addr6.s6_addr, 0, 10); in radius_server_read_clients() 1621 addr6.s6_addr[10] = 0xff; in radius_server_read_clients() 1622 addr6.s6_addr[11] = 0xff; in radius_server_read_clients() [all …]
|
/external/libnetfilter_conntrack/ |
D | configure.ac | 55 struct in6_addr addr6; 57 if (inet_ntop(AF_INET6, &addr6, buf, 128) == 0 && errno == EAFNOSUPPORT)
|
/external/dhcpcd-6.8.2/ |
D | if-linux.c | 588 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/mdnsresponder/mDNSWindows/mdnsNSP/ |
D | mdnsNSP.c | 74 uint8_t addr6[16]; member 1289 memcpy( &obj->addr6, inRData, inRDataSize ); in QueryRecordCallback6() 1485 struct sockaddr_in6 * addr6; in QueryCopyQuerySetTo() local 1521 addr6 = (struct sockaddr_in6 *) dst; in QueryCopyQuerySetTo() 1522 memset( addr6, 0, sizeof( *addr6 ) ); in QueryCopyQuerySetTo() 1523 addr6->sin6_family = AF_INET6; in QueryCopyQuerySetTo() 1524 addr6->sin6_scope_id = inRef->addr6ScopeId; in QueryCopyQuerySetTo() 1525 memcpy( &addr6->sin6_addr, &inRef->addr6, 16 ); in QueryCopyQuerySetTo() 1526 dst += sizeof( *addr6 ); in QueryCopyQuerySetTo()
|