Home
last modified time | relevance | path

Searched refs:sockaddr_in6 (Results 1 – 25 of 207) sorted by relevance

123456789

/external/ipsec-tools/src/racoon/
Dsockmisc.c117 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 …]
/external/toybox/toys/pending/
Dtftp.c77 ((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 …]
Dtraceroute.c149 ((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 …]
/external/ltp/testcases/network/lib6/
Dgetaddrinfo_01.c546 struct sockaddr_in6 *psin6 = 0; in gaiv6()
551 err |= pai->ai_addrlen != sizeof(struct sockaddr_in6); in gaiv6()
553 psin6 = (struct sockaddr_in6 *)pai->ai_addr; in gaiv6()
623 struct sockaddr_in6 *psin6 = 0; in gaiv6()
628 err |= pai->ai_addrlen != sizeof(struct sockaddr_in6); in gaiv6()
630 psin6 = (struct sockaddr_in6 *)pai->ai_addr; in gaiv6()
667 struct sockaddr_in6 *psin6 = 0; in gaiv6()
672 err |= pai->ai_addrlen != sizeof(struct sockaddr_in6); in gaiv6()
674 psin6 = (struct sockaddr_in6 *)pai->ai_addr; in gaiv6()
736 struct sockaddr_in6 *psin6 = 0; in gaiv6()
[all …]
Din6_01.c120 struct sockaddr_in6 sin6; in test_sockaddr_in6()
197 sizeof(ss) <= sizeof(struct sockaddr_in6)) in test_sockaddr_storage()
202 struct sockaddr_in6 *psin6 = (struct sockaddr_in6 *)&ss; in test_sockaddr_storage()
/external/mdnsresponder/mDNSPosix/
DmDNSUNP.c92 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/
Drdma_user_cm.h105 struct sockaddr_in6 addr;
117 struct sockaddr_in6 src_addr;
118 struct sockaddr_in6 dst_addr;
153 struct sockaddr_in6 src_addr;
154 struct sockaddr_in6 dst_addr;
243 struct sockaddr_in6 addr;
/external/kernel-headers/original/uapi/linux/
Dmroute6.h80 struct sockaddr_in6 mf6cc_origin; /* Origin of mcast */
81 struct sockaddr_in6 mf6cc_mcastgrp; /* Group in question */
91 struct sockaddr_in6 src;
92 struct sockaddr_in6 grp;
/external/deqp/framework/delibs/deutil/
DdeSocket.c242 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/
Dtraceroute6.c293 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/autotest/client/tests/ipv6connect/src/
Dipv6connect.c39 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/openssh/
Dcanohost.c41 struct sockaddr_in6 *a6 = (struct sockaddr_in6 *)addr; in ipv64_normalise_mapped()
89 addrlen = sizeof(struct sockaddr_in6); in get_socket_address()
180 fromlen = sizeof(struct sockaddr_in6); in get_sock_port()
/external/openssh/openbsd-compat/
Dbindresvport.c58 struct sockaddr_in6 *in6; in bindresvport_sa()
82 in6 = (struct sockaddr_in6 *)sa; in bindresvport_sa()
83 salen = sizeof(struct sockaddr_in6); in bindresvport_sa()
/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/c-ares/
Dares_getnameinfo.c69 struct sockaddr_in6 addr6;
89 static void append_scopeid(struct sockaddr_in6 *addr6, unsigned int scopeid,
99 struct sockaddr_in6 *addr6 = NULL; in ares_getnameinfo()
111 (salen == sizeof(struct sockaddr_in6))) in ares_getnameinfo()
113 addr6 = (struct sockaddr_in6 *)sa; in ares_getnameinfo()
156 if (salen == sizeof(struct sockaddr_in6)) in ares_getnameinfo()
356 static void append_scopeid(struct sockaddr_in6 *addr6, unsigned int flags, in append_scopeid()
/external/ltp/utils/sctp/func_tests/
Dtest_basic.c92 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/linux-kselftest/tools/testing/selftests/net/
Dreuseport_bpf_numa.c31 struct sockaddr_in6 *addr6; in build_rcv_group()
43 addr6 = (struct sockaddr_in6 *)&addr; in build_rcv_group()
108 struct sockaddr_in6 *saddr6, *daddr6; in send_from_node()
124 saddr6 = (struct sockaddr_in6 *)&saddr; in send_from_node()
129 daddr6 = (struct sockaddr_in6 *)&daddr; in send_from_node()
Dreuseport_bpf_cpu.c37 struct sockaddr_in6 *addr6; in build_rcv_group()
49 addr6 = (struct sockaddr_in6 *)&addr; in build_rcv_group()
97 struct sockaddr_in6 *saddr6, *daddr6; in send_from_cpu()
114 saddr6 = (struct sockaddr_in6 *)&saddr; in send_from_cpu()
119 daddr6 = (struct sockaddr_in6 *)&daddr; in send_from_cpu()
/external/curl/lib/
Dif2ip.c70 const struct sockaddr_in6 * sa6 = (const struct sockaddr_in6 *)(void *) sa; in Curl_ipv6_scope()
155 &((struct sockaddr_in6 *)(void *)iface->ifa_addr)->sin6_addr; in Curl_if2ip()
158 scopeid = ((struct sockaddr_in6 *)(void *)iface->ifa_addr) in Curl_if2ip()
/external/libpcap/
Dsockutils.c246 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/ltp/utils/sctp/lib/
Dbindx.c68 addrs_size += sizeof(struct sockaddr_in6); in sctp_bindx()
69 addrbuf += sizeof(struct sockaddr_in6); in sctp_bindx()
/external/netperf/src/missing/m4/
Dsockaddrin6.m430 dnl * Check for struct sockaddr_in6
33 [AC_CACHE_CHECK(for struct sockaddr_in6, ac_cv_struct_sockaddr_in6,
38 struct sockaddr_in6 address;
42 [Define to 1 if <netinet/in.h> defines `struct sockaddr_in6'])
/external/netperf/m4/m4/
Dsockaddrin6.m430 dnl * Check for struct sockaddr_in6
33 [AC_CACHE_CHECK(for struct sockaddr_in6, ac_cv_struct_sockaddr_in6,
38 struct sockaddr_in6 address;
42 [Define to 1 if <netinet/in.h> defines `struct sockaddr_in6'])
/external/webrtc/webrtc/base/
Difaddrs-android.cc75 sockaddr_in6* sa = new sockaddr_in6; in set_addresses()
98 sockaddr_in6* mask = new sockaddr_in6; in make_prefixes()
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()

123456789