Home
last modified time | relevance | path

Searched refs:sin6_addr (Results 1 – 25 of 151) sorted by relevance

1234567

/external/parameter-framework/asio-1.10.6/include/asio/ip/detail/impl/
Dendpoint.ipp53 data_.v6.sin6_addr.s6_addr[0] = 0; data_.v6.sin6_addr.s6_addr[1] = 0;
54 data_.v6.sin6_addr.s6_addr[2] = 0, data_.v6.sin6_addr.s6_addr[3] = 0;
55 data_.v6.sin6_addr.s6_addr[4] = 0, data_.v6.sin6_addr.s6_addr[5] = 0;
56 data_.v6.sin6_addr.s6_addr[6] = 0, data_.v6.sin6_addr.s6_addr[7] = 0;
57 data_.v6.sin6_addr.s6_addr[8] = 0, data_.v6.sin6_addr.s6_addr[9] = 0;
58 data_.v6.sin6_addr.s6_addr[10] = 0, data_.v6.sin6_addr.s6_addr[11] = 0;
59 data_.v6.sin6_addr.s6_addr[12] = 0, data_.v6.sin6_addr.s6_addr[13] = 0;
60 data_.v6.sin6_addr.s6_addr[14] = 0, data_.v6.sin6_addr.s6_addr[15] = 0;
88 memcpy(data_.v6.sin6_addr.s6_addr, bytes.data(), 16);
144 memcpy(bytes.data(), data_.v6.sin6_addr.s6_addr, 16);
/external/syslinux/gpxe/src/net/
Dicmpv6.c53 st_dest.sin6.sin6_addr.in6_u.u6_addr8[0] = 0xff; in icmp6_send_solicit()
54 st_dest.sin6.sin6_addr.in6_u.u6_addr8[2] = 0x02; in icmp6_send_solicit()
55 st_dest.sin6.sin6_addr.in6_u.u6_addr16[1] = 0x0000; in icmp6_send_solicit()
56 st_dest.sin6.sin6_addr.in6_u.u6_addr32[1] = 0x00000000; in icmp6_send_solicit()
57 st_dest.sin6.sin6_addr.in6_u.u6_addr16[4] = 0x0000; in icmp6_send_solicit()
58 st_dest.sin6.sin6_addr.in6_u.u6_addr16[5] = 0x0001; in icmp6_send_solicit()
59 st_dest.sin6.sin6_addr.in6_u.u6_addr32[3] = dest->in6_u.u6_addr32[3]; in icmp6_send_solicit()
60 st_dest.sin6.sin6_addr.in6_u.u6_addr8[13] = 0xff; in icmp6_send_solicit()
107 nadvert->target = server.sin6_addr;
116 ip6hdr->src = server.sin6_addr;
[all …]
Dipv6.c202 next_hop = dest->sin6_addr; in ipv6_tx()
333 src.sin6.sin6_addr = ip6hdr->src; in ipv6_rx()
336 dest.sin6.sin6_addr = ip6hdr->dest; in ipv6_rx()
/external/autotest/client/tests/ipv6connect/src/
Dipv6connect.c52 inet_pton(AF_INET6, "::1", &sa.sin6_addr); in ConnectAndAccept()
54 inet_pton(AF_INET6, "::ffff:127.0.0.1", &sa.sin6_addr); in ConnectAndAccept()
56 if (!inet_ntop(AF_INET6, &sa.sin6_addr, buf, INET6_ADDRSTRLEN)) { in ConnectAndAccept()
109 sa.sin6_addr = in6addr_any; in CreateServer()
139 sa.sin6_addr = in6addr_any; in CreateServerConnectAndAccept()
161 inet_pton(AF_INET6, "::1", &sa.sin6_addr); in CreateServerConnectAndAccept()
163 inet_pton(AF_INET6, "::ffff:127.0.0.1", &sa.sin6_addr); in CreateServerConnectAndAccept()
165 if (!inet_ntop(AF_INET6, &sa.sin6_addr, buf, INET6_ADDRSTRLEN)) { in CreateServerConnectAndAccept()
232 sa.sin6_addr = in6addr_any; in ThreadedStartServer()
292 if (!inet_ntop(AF_INET6, &sa.sin6_addr, buf, INET6_ADDRSTRLEN)) { in ThreadedCreateServerConnectAndAccept()
[all …]
/external/iputils/
Dtraceroute6.c450 if (inet_pton(AF_INET6, *argv, &to->sin6_addr) > 0) { in main()
460 memmove((caddr_t)&to->sin6_addr, hp->h_addr, sizeof(to->sin6_addr)); in main()
569 if (inet_pton(AF_INET6, source, &saddr.sin6_addr) <= 0) in main()
586 inet_ntop(AF_INET6, &to->sin6_addr, pa, sizeof(pa))); in main()
589 inet_ntop(AF_INET6, &saddr.sin6_addr, pa, sizeof(pa))); in main()
613 if (memcmp(&from.sin6_addr, &lastaddr, sizeof(from.sin6_addr))) { in main()
616 &from.sin6_addr, in main()
876 inet_ntop(AF_INET6, &from->sin6_addr, pa1, sizeof(pa1)), in packet_ok()
904 Printf(" %s", inet_ntop(AF_INET6, &from->sin6_addr, in print()
912 hostname = inet_ntop(AF_INET6, &from->sin6_addr, pa, sizeof(pa)); in print()
[all …]
Dping6.c465 offset = OFFSET_OF(struct sockaddr_in6, sin6_addr); in niquery_option_subject_addr_handler()
768 if (inet_pton(AF_INET6, addr, (char*)&source.sin6_addr) <= 0) { in main()
871 addr = &((struct sockaddr_in6 *)(ai->ai_addr))->sin6_addr; in main()
877 if (IN6_IS_ADDR_UNSPECIFIED(&firsthop.sin6_addr)) { in main()
878 memcpy(&firsthop.sin6_addr, addr, 16); in main()
901 ni_subject = &whereto.sin6_addr; in main()
902 ni_subject_len = sizeof(whereto.sin6_addr); in main()
939 if (IN6_IS_ADDR_UNSPECIFIED(&firsthop.sin6_addr)) { in main()
940 memcpy(&firsthop.sin6_addr, &whereto.sin6_addr, 16); in main()
955 if (IN6_IS_ADDR_UNSPECIFIED(&source.sin6_addr)) { in main()
[all …]
/external/ipsec-tools/src/racoon/
Dgrabmyaddr.c202 memcpy(&sin->sin6_addr, RTA_DATA(rta_tb[IFA_LOCAL]), 16); in recvaddrs()
203 if (IN6_IS_ADDR_LINKLOCAL(&sin->sin6_addr)) in recvaddrs()
389 if (IN6_IS_ADDR_LINKLOCAL(&sin6->sin6_addr) in grab_myaddrs()
390 || IN6_IS_ADDR_SITELOCAL(&sin6->sin6_addr)) { 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()
400 if (IN6_IS_ADDR_LINKLOCAL(&sin6->sin6_addr) in grab_myaddrs()
401 || IN6_IS_ADDR_SITELOCAL(&sin6->sin6_addr)) { in grab_myaddrs()
525 if (IN6_IS_ADDR_LINKLOCAL(&sin6->sin6_addr) in grab_myaddrs()
[all …]
Dsockmisc.c117 sa1 = (caddr_t)&((struct sockaddr_in6 *)addr1)->sin6_addr;
118 sa2 = (caddr_t)&((struct sockaddr_in6 *)addr2)->sin6_addr;
177 sa1 = (caddr_t)&((struct sockaddr_in6 *)addr1)->sin6_addr;
178 sa2 = (caddr_t)&((struct sockaddr_in6 *)addr2)->sin6_addr;
240 sa1 = (caddr_t)&((struct sockaddr_in6 *)addr1)->sin6_addr;
241 sa2 = (caddr_t)&((struct sockaddr_in6 *)addr2)->sin6_addr;
456 memcpy(&sin6->sin6_addr, &pi->ipi6_addr,
457 sizeof(sin6->sin6_addr));
459 if (IN6_IS_ADDR_LINKLOCAL(&sin6->sin6_addr))
497 memcpy(&sin6->sin6_addr, CMSG_DATA(cm),
[all …]
/external/ltp/utils/sctp/func_tests/
Dtest_basic.c105 loop1.v6.sin6_addr = (struct in6_addr)SCTP_IN6ADDR_ANY_INIT; in main()
109 loop2.v6.sin6_addr = in6addr_loopback; in main()
211 if (memcmp(&msgname.v6.sin6_addr, &in6addr_loopback, in main()
212 sizeof(msgname.v6.sin6_addr))) { in main()
267 if (memcmp(&msgname.v6.sin6_addr, &in6addr_loopback, in main()
268 sizeof(msgname.v6.sin6_addr))) { in main()
366 NIP6(in6_addr->sin6_addr), in main()
396 NIP6(in6_addr->sin6_addr), in main()
430 if (memcmp(&msgname.v6.sin6_addr, &in6addr_loopback, in main()
431 sizeof(msgname.v6.sin6_addr))) { in main()
/external/wpa_supplicant_8/wpa_supplicant/
Dctrl_iface_udp.c100 inet_ntop(AF_INET6, &from->sin6_addr, addr, sizeof(*from)), in wpa_supplicant_ctrl_iface_attach()
127 !os_memcmp(&from->sin6_addr, &dst->addr.sin6_addr,
128 sizeof(from->sin6_addr))) {
130 inet_ntop(AF_INET6, &from->sin6_addr, addr,
174 !os_memcmp(&from->sin6_addr, &dst->addr.sin6_addr,
175 sizeof(from->sin6_addr))) {
177 inet_ntop(AF_INET6, &from->sin6_addr, addr,
248 inet_ntop(AF_INET6, &from.sin6_addr, addr, sizeof(from));
423 addr.sin6_addr = in6addr_any;
425 inet_pton(AF_INET6, "::1", &addr.sin6_addr);
[all …]
/external/libcups/cups/
Dhttp-addr.c45 IN6_IS_ADDR_UNSPECIFIED(&(addr->ipv6.sin6_addr))) in httpAddrAny()
114 return (!memcmp(&(addr1->ipv6.sin6_addr), &(addr2->ipv6.sin6_addr), 16)); in httpAddrEqual()
293 IN6_IS_ADDR_LOOPBACK(&(addr->ipv6.sin6_addr))) in httpAddrLocalhost()
406 host = gethostbyaddr((char *)&(addr->ipv6.sin6_addr), in httpAddrLookup()
570 for (sptr = temps, i = 0; i < 4 && addr->ipv6.sin6_addr.s6_addr32[i]; i ++) in httpAddrString()
572 temp = ntohl(addr->ipv6.sin6_addr.s6_addr32[i]); in httpAddrString()
580 if (temp || i == 3 || addr->ipv6.sin6_addr.s6_addr32[i + 1]) in httpAddrString()
589 while (i < 4 && !addr->ipv6.sin6_addr.s6_addr32[i]) in httpAddrString()
600 temp = ntohl(addr->ipv6.sin6_addr.s6_addr32[i]); in httpAddrString()
603 (i > 0 && addr->ipv6.sin6_addr.s6_addr32[i - 1])) in httpAddrString()
/external/libpcap/tests/
Dfindalldevstest.c116 ((struct sockaddr_in6 *)(a->addr))->sin6_addr.s6_addr, in ifprint()
121 ((struct sockaddr_in6 *)(a->netmask))->sin6_addr.s6_addr, in ifprint()
126 ((struct sockaddr_in6 *)(a->broadaddr))->sin6_addr.s6_addr, in ifprint()
131 ((struct sockaddr_in6 *)(a->dstaddr))->sin6_addr.s6_addr, in ifprint()
/external/webrtc/webrtc/test/channel_transport/
Dudp_transport_impl.cc1094 &_filterIPAddress._sockaddr_in6.sin6_addr) < 0) in SetFilterIP()
1183 &_remoteRTPAddr._sockaddr_in6.sin6_addr); in BuildRemoteRTPAddr()
1212 &_remoteRTCPAddr._sockaddr_in6.sin6_addr); in BuildRemoteRTCPAddr()
1247 _localRTPAddr._sockaddr_in6.sin6_addr.Version6AddressUnion._s6_u32[0] = in BindRTPSendSocket()
1249 _localRTPAddr._sockaddr_in6.sin6_addr.Version6AddressUnion._s6_u32[1] = in BindRTPSendSocket()
1251 _localRTPAddr._sockaddr_in6.sin6_addr.Version6AddressUnion._s6_u32[2] = in BindRTPSendSocket()
1253 _localRTPAddr._sockaddr_in6.sin6_addr.Version6AddressUnion._s6_u32[3] = in BindRTPSendSocket()
1299 _localRTCPAddr._sockaddr_in6.sin6_addr.Version6AddressUnion._s6_u32[0] = in BindRTCPSendSocket()
1301 _localRTCPAddr._sockaddr_in6.sin6_addr.Version6AddressUnion._s6_u32[1] = in BindRTCPSendSocket()
1303 _localRTCPAddr._sockaddr_in6.sin6_addr.Version6AddressUnion._s6_u32[2] = in BindRTCPSendSocket()
[all …]
/external/strace/tests-m32/
Dnet-sockaddr.c171 inet_pton(AF_INET6, h_addr, &in6->sin6_addr); in check_in6_linklocal()
208 inet_pton(AF_INET6, h_addr, &in6->sin6_addr); in check_in6()
225 inet_pton(AF_INET6, h_addr, &in6->sin6_addr); in check_in6()
239 inet_pton(AF_INET6, h_addr, &in6->sin6_addr); in check_in6()
252 memset(&in6->sin6_addr, '0', sizeof(in6->sin6_addr) - 4); in check_in6()
258 (int) (len - offsetof(struct sockaddr_in6, sin6_addr)), 0, in check_in6()
/external/strace/tests/
Dnet-sockaddr.c171 inet_pton(AF_INET6, h_addr, &in6->sin6_addr); in check_in6_linklocal()
208 inet_pton(AF_INET6, h_addr, &in6->sin6_addr); in check_in6()
225 inet_pton(AF_INET6, h_addr, &in6->sin6_addr); in check_in6()
239 inet_pton(AF_INET6, h_addr, &in6->sin6_addr); in check_in6()
252 memset(&in6->sin6_addr, '0', sizeof(in6->sin6_addr) - 4); in check_in6()
258 (int) (len - offsetof(struct sockaddr_in6, sin6_addr)), 0, in check_in6()
/external/strace/tests-mx32/
Dnet-sockaddr.c171 inet_pton(AF_INET6, h_addr, &in6->sin6_addr); in check_in6_linklocal()
208 inet_pton(AF_INET6, h_addr, &in6->sin6_addr); in check_in6()
225 inet_pton(AF_INET6, h_addr, &in6->sin6_addr); in check_in6()
239 inet_pton(AF_INET6, h_addr, &in6->sin6_addr); in check_in6()
252 memset(&in6->sin6_addr, '0', sizeof(in6->sin6_addr) - 4); in check_in6()
258 (int) (len - offsetof(struct sockaddr_in6, sin6_addr)), 0, in check_in6()
/external/wpa_supplicant_8/src/common/
Dctrl_iface_common.c47 if (os_memcmp(&in6_a->sin6_addr, &in6_b->sin6_addr, in sockaddr_compare()
48 sizeof(in6_a->sin6_addr)) != 0) in sockaddr_compare()
/external/webrtc/webrtc/base/
Difaddrs_converter.cc37 reinterpret_cast<sockaddr_in6*>(interface->ifa_addr)->sin6_addr, in ConvertIfAddrsToIPAddress()
40 reinterpret_cast<sockaddr_in6*>(interface->ifa_netmask)->sin6_addr); in ConvertIfAddrsToIPAddress()
Difaddrs-android.cc78 memcpy(&sa->sin6_addr, data, len); in set_addresses()
100 memset(&mask->sin6_addr, 0, sizeof(in6_addr)); in make_prefixes()
105 prefix = reinterpret_cast<char*>(&mask->sin6_addr); in make_prefixes()
/external/dhcpcd-6.8.2/
Dif.c234 if (IN6_IS_ADDR_LINKLOCAL(&sin6->sin6_addr)) in if_learnaddrs1()
236 sin6->sin6_addr.s6_addr[2] = in if_learnaddrs1()
237 sin6->sin6_addr.s6_addr[3] = '\0'; in if_learnaddrs1()
239 ifa_flags = if_addrflags6(&sin6->sin6_addr, ifp); in if_learnaddrs1()
243 &sin6->sin6_addr, in if_learnaddrs1()
244 ipv6_prefixlen(&net6->sin6_addr), in if_learnaddrs1()
/external/linux-kselftest/tools/testing/selftests/net/
Dreuseport_bpf_numa.c46 addr6->sin6_addr = in6addr_any; in build_rcv_group()
127 saddr6->sin6_addr = in6addr_any; in send_from_node()
132 daddr6->sin6_addr = in6addr_loopback; in send_from_node()
Dreuseport_bpf_cpu.c52 addr6->sin6_addr = in6addr_any; in build_rcv_group()
117 saddr6->sin6_addr = in6addr_any; in send_from_cpu()
122 daddr6->sin6_addr = in6addr_loopback; in send_from_cpu()
/external/toybox/toys/pending/
Dtraceroute.c410 if (memcmp(&((struct sockaddr_in6 *)&last_addr)->sin6_addr, in do_trace()
411 &((struct sockaddr_in6 *)&from)->sin6_addr, in do_trace()
420 inet_ntop(AF_INET6, &((struct sockaddr_in6 *)&from)->sin6_addr, in do_trace()
432 &from)->sin6_addr, addr_str, INET6_ADDRSTRLEN); in do_trace()
607 if(inet_pton(AF_INET6, TT.src_ip, &(source.sin6_addr)) <= 0) in traceroute_main()
632 inet_ntop(AF_INET6, &((struct sockaddr_in6 *)&dest)->sin6_addr, in traceroute_main()
/external/strace/
Dsockaddr.c179 PRINT_FIELD_INET_ADDR(", ", *sa_in6, sin6_addr, AF_INET6); in print_sockaddr_data_in6()
186 if (IN6_IS_ADDR_LINKLOCAL(&sa_in6->sin6_addr) in print_sockaddr_data_in6()
187 || IN6_IS_ADDR_MC_LINKLOCAL(&sa_in6->sin6_addr)) in print_sockaddr_data_in6()
/external/libpcap/
Dsockutils.c247 if (IN6_IS_ADDR_MULTICAST(&saddr6->sin6_addr)) return 0; in sock_ismcastaddr()
990 if (memcmp(&(((struct sockaddr_in6 *) first)->sin6_addr), in sock_cmpaddr()
991 &(((struct sockaddr_in6 *) second)->sin6_addr), in sock_cmpaddr()
1130 …(memcmp(&((struct sockaddr_in6 *) sockaddr)->sin6_addr, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0", sizeof… in sock_getascii_addrport()

1234567