/external/ipsec-tools/src/racoon/ |
D | sockmisc.c | 117 sa1 = (caddr_t)&((struct sockaddr_in6 *)addr1)->sin6_addr; 118 sa2 = (caddr_t)&((struct sockaddr_in6 *)addr2)->sin6_addr; 121 if (((struct sockaddr_in6 *)addr1)->sin6_scope_id != 122 ((struct sockaddr_in6 *)addr2)->sin6_scope_id) 177 sa1 = (caddr_t)&((struct sockaddr_in6 *)addr1)->sin6_addr; 178 sa2 = (caddr_t)&((struct sockaddr_in6 *)addr2)->sin6_addr; 179 port1 = ((struct sockaddr_in6 *)addr1)->sin6_port; 180 port2 = ((struct sockaddr_in6 *)addr2)->sin6_port; 187 if (((struct sockaddr_in6 *)addr1)->sin6_scope_id != 188 ((struct sockaddr_in6 *)addr2)->sin6_scope_id) [all …]
|
D | grabmyaddr.c | 201 struct sockaddr_in6 *sin = (void*)I->ifa_addr; in recvaddrs() 342 struct sockaddr_in6 *sin6; in grab_myaddrs() 388 sin6 = (struct sockaddr_in6 *)p->addr; in grab_myaddrs() 399 sin6 = (struct sockaddr_in6 *)p->addr; in grab_myaddrs() 445 struct sockaddr_in6 *sin6; in grab_myaddrs() 524 sin6 = (struct sockaddr_in6 *)p->addr; in grab_myaddrs() 620 ifr6.ifr_addr = *(const struct sockaddr_in6 *)ifaddr; 901 IN6_IS_ADDR_LINKLOCAL(&((struct sockaddr_in6 *)my)->sin6_addr); 915 if (check_wo_scope_id && IN6_IS_ADDR_LINKLOCAL(&((struct sockaddr_in6 *)p->addr)->sin6_addr) &&
|
/external/toybox/toys/pending/ |
D | tftp.c | 77 ((struct sockaddr_in6 *)server)->sin6_family = AF_INET6; 78 ((struct sockaddr_in6 *)server)->sin6_addr = 79 ((struct sockaddr_in6 *)&TT.inaddr)->sin6_addr; 80 ((struct sockaddr_in6 *)server)->sin6_port = htons(port); 285 if (TT.af == AF_INET6) ((struct sockaddr_in6 *)&server)->sin6_port = 0; in file_get() 298 memcmp(&((struct sockaddr_in6 *)&server)->sin6_addr, in file_get() 299 &((struct sockaddr_in6 *)&from)->sin6_addr, in file_get() 308 ((TT.af == AF_INET6) && ((struct sockaddr_in6 *)&server)->sin6_port in file_get() 309 && (((struct sockaddr_in6 *)&server)->sin6_port != in file_get() 310 ((struct sockaddr_in6 *)&from)->sin6_port))) { in file_get() [all …]
|
D | traceroute.c | 149 ((struct sockaddr_in6 *)&dest)->sin6_port = TT.port; in send_probe6() 157 (struct sockaddr *) &dest, sizeof(struct sockaddr_in6)) < 0) in send_probe6() 410 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() 431 inet_ntop(AF_INET6, &((struct sockaddr_in6 *) in do_trace() 604 struct sockaddr_in6 source; in traceroute_main() 611 sizeof(struct sockaddr_in6)) < 0) in traceroute_main() 614 struct sockaddr_in6 prb; in traceroute_main() 619 ((struct sockaddr_in6 *)&dest)->sin6_port = htons(1025); in traceroute_main() [all …]
|
D | route.c | 98 static int get_addrinfo(char *ip, struct sockaddr_in6 *sock_in6) in get_addrinfo() 321 static void get_next_params_inet6(char **argv, struct sockaddr_in6 *sock_in6, struct in6_rtmsg *rt,… in get_next_params_inet6() 334 if (!get_addrinfo(*argv, (struct sockaddr_in6 *) &sock_in6)) { in get_next_params_inet6() 349 struct sockaddr_in6 sock_in6; in setroute_inet6() 355 memset(&sock_in6, 0, sizeof(struct sockaddr_in6)); in setroute_inet6() 365 if (get_addrinfo(targetip, (struct sockaddr_in6 *) &sock_in6)) in setroute_inet6()
|
/external/ltp/testcases/network/lib6/ |
D | getaddrinfo_01.c | 547 struct sockaddr_in6 *psin6 = 0; in gaiv6() 552 err |= pai->ai_addrlen != sizeof(struct sockaddr_in6); in gaiv6() 554 psin6 = (struct sockaddr_in6 *)pai->ai_addr; in gaiv6() 624 struct sockaddr_in6 *psin6 = 0; in gaiv6() 629 err |= pai->ai_addrlen != sizeof(struct sockaddr_in6); in gaiv6() 631 psin6 = (struct sockaddr_in6 *)pai->ai_addr; in gaiv6() 668 struct sockaddr_in6 *psin6 = 0; in gaiv6() 673 err |= pai->ai_addrlen != sizeof(struct sockaddr_in6); in gaiv6() 675 psin6 = (struct sockaddr_in6 *)pai->ai_addr; in gaiv6() 737 struct sockaddr_in6 *psin6 = 0; in gaiv6() [all …]
|
D | in6_01.c | 86 struct sockaddr_in6 sin6; in test_sockaddr_in6() 170 sizeof(ss) <= sizeof(struct sockaddr_in6)) in test_sockaddr_storage() 175 struct sockaddr_in6 *psin6 = (struct sockaddr_in6 *)&ss; in test_sockaddr_storage()
|
/external/mdnsresponder/mDNSPosix/ |
D | mDNSUNP.c | 92 struct sockaddr_in6 *sin6; in get_ifi_info_linuxv6() 143 ifi->ifi_addr = calloc(1, sizeof(struct sockaddr_in6)); in get_ifi_info_linuxv6() 147 memcpy(ifi->ifi_addr, res0->ai_addr, sizeof(struct sockaddr_in6)); in get_ifi_info_linuxv6() 152 ifi->ifi_netmask = calloc(1, sizeof(struct sockaddr_in6)); in get_ifi_info_linuxv6() 156 sin6=calloc(1, sizeof(struct sockaddr_in6)); in get_ifi_info_linuxv6() 162 memcpy(ifi->ifi_netmask, sin6, sizeof(struct sockaddr_in6)); in get_ifi_info_linuxv6() 235 struct sockaddr_in6 *sinptr6; in get_ifi_info() 419 sinptr6 = (struct sockaddr_in6 *) &ifr->ifr_addr; in get_ifi_info() 421 ifi->ifi_addr = calloc(1, sizeof(struct sockaddr_in6)); in get_ifi_info() 430 memcpy(ifi->ifi_addr, sinptr6, sizeof(struct sockaddr_in6)); in get_ifi_info() [all …]
|
/external/kernel-headers/original/uapi/rdma/ |
D | rdma_user_cm.h | 106 struct sockaddr_in6 addr; 118 struct sockaddr_in6 src_addr; 119 struct sockaddr_in6 dst_addr; 154 struct sockaddr_in6 src_addr; 155 struct sockaddr_in6 dst_addr; 244 struct sockaddr_in6 addr;
|
/external/deqp/framework/delibs/deutil/ |
D | deSocket.c | 242 DE_STATIC_ASSERT(sizeof(((struct sockaddr_in6*)DE_NULL)->sin6_port) == sizeof(deUint16)); 325 if (*bsdAddrLen < (NativeSocklen)sizeof(struct sockaddr_in6)) in deSocketAddressToBsdAddress() 327 ((struct sockaddr_in6*)bsdAddr)->sin6_port = deHostToNetworkOrder16((deUint16)address->port); in deSocketAddressToBsdAddress() 354 struct sockaddr_in6* addr6 = (struct sockaddr_in6*)bsdAddr; in deSocketAddressToBsdAddress() 356 if (bsdAddrBufSize < sizeof(struct sockaddr_in6)) in deSocketAddressToBsdAddress() 365 *bsdAddrLen = (NativeSocklen)sizeof(struct sockaddr_in6); in deSocketAddressToBsdAddress() 393 const struct sockaddr_in6* addr6 = (const struct sockaddr_in6*)bsdAddr; in deBsdAddressToSocketAddress() 394 DE_ASSERT(addrLen >= (int)sizeof(struct sockaddr_in6)); in deBsdAddressToSocketAddress() 499 deUint8 bsdAddrBuf[sizeof(struct sockaddr_in6)]; in deSocket_listen() 546 deUint8 bsdAddrBuf[sizeof(struct sockaddr_in6)]; in deSocket_accept() [all …]
|
/external/iputils/ |
D | traceroute6.c | 293 int wait_for_reply(int, struct sockaddr_in6 *, struct in6_addr *, int); 294 int packet_ok(u_char *buf, int cc, struct sockaddr_in6 *from, 298 void print(unsigned char *buf, int cc, struct sockaddr_in6 *from); 306 struct sockaddr_in6 whereto; /* Who to try to reach */ 308 struct sockaddr_in6 saddr; 309 struct sockaddr_in6 firsthop; 342 struct sockaddr_in6 from, *to; in main() 370 to = (struct sockaddr_in6 *)&whereto; in main() 659 struct sockaddr_in6 *from; 824 int packet_ok(u_char *buf, int cc, struct sockaddr_in6 *from, in packet_ok() [all …]
|
/external/kernel-headers/original/uapi/linux/ |
D | mroute6.h | 82 struct sockaddr_in6 mf6cc_origin; /* Origin of mcast */ 83 struct sockaddr_in6 mf6cc_mcastgrp; /* Group in question */ 93 struct sockaddr_in6 src; 94 struct sockaddr_in6 grp;
|
/external/autotest/client/tests/ipv6connect/src/ |
D | ipv6connect.c | 39 struct sockaddr_in6 sa; in ConnectAndAccept() 64 sizeof(struct sockaddr_in6)) == -1) { in ConnectAndAccept() 99 struct sockaddr_in6 sa; in CreateServer() 128 struct sockaddr_in6 sa; in CreateServerConnectAndAccept() 170 sizeof(struct sockaddr_in6)); in CreateServerConnectAndAccept() 220 struct sockaddr_in6 sa; in ThreadedStartServer() 269 struct sockaddr_in6 sa; in ThreadedCreateServerConnectAndAccept() 307 sizeof(struct sockaddr_in6)) == -1) { in ThreadedCreateServerConnectAndAccept()
|
/external/ltp/utils/sctp/func_tests/ |
D | test_basic.c | 92 struct sockaddr_in6 *in6_addr; in main() 200 if (inmessage.msg_namelen != sizeof(struct sockaddr_in6)) { in main() 256 if (inmessage.msg_namelen != sizeof(struct sockaddr_in6)) { in main() 363 in6_addr = (struct sockaddr_in6 *)sa_addr; in main() 368 addr_buf += sizeof(struct sockaddr_in6); in main() 393 in6_addr = (struct sockaddr_in6 *)sa_addr; in main() 398 addr_buf += sizeof(struct sockaddr_in6); in main() 419 if (inmessage.msg_namelen != sizeof(struct sockaddr_in6)) { in main()
|
/external/libpcap/tests/ |
D | findalldevstest.c | 116 ((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/linux-kselftest/tools/testing/selftests/net/ |
D | reuseport_bpf_numa.c | 32 struct sockaddr_in6 *addr6; in build_rcv_group() 44 addr6 = (struct sockaddr_in6 *)&addr; in build_rcv_group() 109 struct sockaddr_in6 *saddr6, *daddr6; in send_from_node() 125 saddr6 = (struct sockaddr_in6 *)&saddr; in send_from_node() 130 daddr6 = (struct sockaddr_in6 *)&daddr; in send_from_node()
|
D | reuseport_bpf_cpu.c | 38 struct sockaddr_in6 *addr6; in build_rcv_group() 50 addr6 = (struct sockaddr_in6 *)&addr; in build_rcv_group() 98 struct sockaddr_in6 *saddr6, *daddr6; in send_from_cpu() 115 saddr6 = (struct sockaddr_in6 *)&saddr; in send_from_cpu() 120 daddr6 = (struct sockaddr_in6 *)&daddr; in send_from_cpu()
|
/external/curl/lib/ |
D | if2ip.c | 70 const struct sockaddr_in6 * sa6 = (const struct sockaddr_in6 *)(void *) sa; in Curl_ipv6_scope() 157 &((struct sockaddr_in6 *)(void *)iface->ifa_addr)->sin6_addr; in Curl_if2ip() 160 scopeid = ((struct sockaddr_in6 *)(void *)iface->ifa_addr) in Curl_if2ip()
|
/external/libpcap/ |
D | sockutils.c | 246 struct sockaddr_in6 *saddr6 = (struct sockaddr_in6 *) saddr; 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() 1122 sockaddrlen = sizeof(struct sockaddr_in6); in sock_getascii_addrport() 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() 1217 memcpy(sockaddr, addrinfo->ai_addr, sizeof(struct sockaddr_in6)); in sock_present2network()
|
/external/webrtc/webrtc/base/ |
D | ifaddrs-android.cc | 75 sockaddr_in6* sa = new sockaddr_in6; in set_addresses() 98 sockaddr_in6* mask = new sockaddr_in6; in make_prefixes()
|
D | socketaddress.cc | 288 sockaddr_in6* saddr = reinterpret_cast<sockaddr_in6*>(addr); in ToSockAddrStorageHelper() 292 return sizeof(sockaddr_in6); in ToSockAddrStorageHelper() 321 const sockaddr_in6* saddr = reinterpret_cast<const sockaddr_in6*>(&addr); in SocketAddressFromSockAddrStorage()
|
D | ifaddrs_converter.cc | 37 reinterpret_cast<sockaddr_in6*>(interface->ifa_addr)->sin6_addr, in ConvertIfAddrsToIPAddress() 40 reinterpret_cast<sockaddr_in6*>(interface->ifa_netmask)->sin6_addr); in ConvertIfAddrsToIPAddress()
|
/external/wpa_supplicant_8/src/common/ |
D | ctrl_iface_common.c | 40 struct sockaddr_in6 *in6_a, *in6_b; in sockaddr_compare() 42 in6_a = (struct sockaddr_in6 *) a; in sockaddr_compare() 43 in6_b = (struct sockaddr_in6 *) b; in sockaddr_compare()
|
/external/ltp/utils/sctp/lib/ |
D | bindx.c | 68 addrs_size += sizeof(struct sockaddr_in6); in sctp_bindx() 69 addrbuf += sizeof(struct sockaddr_in6); in sctp_bindx()
|
/external/syslinux/gpxe/src/net/ |
D | icmpv6.c | 29 struct sockaddr_in6 sin6; in icmp6_send_solicit() 96 void icmp6_test_nadvert (struct net_device *netdev, struct sockaddr_in6 *server_p, char *ll_addr) { 98 struct sockaddr_in6 server;
|