Home
last modified time | relevance | path

Searched refs:sin6 (Results 1 – 25 of 37) sorted by relevance

12

/external/chromium_org/third_party/usrsctp/usrsctplib/netinet6/
Dsctp6_usrreq.c83 in6_sin6_2_sin(struct sockaddr_in *sin, struct sockaddr_in6 *sin6) in in6_sin6_2_sin() argument
93 sin->sin_port = sin6->sin6_port; in in6_sin6_2_sin()
95 temp = sin6->sin6_addr.s6_addr16[7]; in in6_sin6_2_sin()
97 temp = temp | sin6->sin6_addr.s6_addr16[6]; in in6_sin6_2_sin()
101 sin->sin_addr.s_addr = sin6->sin6_addr.s6_addr32[3]; in in6_sin6_2_sin()
109 struct sockaddr_in6 sin6; in in6_sin6_2_sin_in_sock() local
112 sin6 = *(struct sockaddr_in6 *)nam; in in6_sin6_2_sin_in_sock()
114 in6_sin6_2_sin(sin_p, &sin6); in in6_sin6_2_sin_in_sock()
1052 struct sockaddr_in6 *sin6; local
1085 sin6 = (struct sockaddr_in6 *)addr;
[all …]
Dsctp6_var.h42 extern void in6_sin6_2_sin(struct sockaddr_in *, struct sockaddr_in6 *sin6);
77 struct sockaddr_in6 *sin6);
78 extern void in6_sin6_2_sin(struct sockaddr_in *, struct sockaddr_in6 *sin6);
/external/chromium_org/third_party/usrsctp/usrsctplib/netinet/
Dsctp_asconf.c170 struct sockaddr_in6 *sin6; in sctp_process_asconf_add_ip() local
214 sin6 = &store.sin6; in sctp_process_asconf_add_ip()
215 bzero(sin6, sizeof(*sin6)); in sctp_process_asconf_add_ip()
216 sin6->sin6_family = AF_INET6; in sctp_process_asconf_add_ip()
218 sin6->sin6_len = sizeof(struct sockaddr_in6); in sctp_process_asconf_add_ip()
220 sin6->sin6_port = stcb->rport; in sctp_process_asconf_add_ip()
221 memcpy((caddr_t)&sin6->sin6_addr, v6addr->addr, in sctp_process_asconf_add_ip()
223 if (IN6_IS_ADDR_MULTICAST(&sin6->sin6_addr)) { in sctp_process_asconf_add_ip()
226 if (IN6_IS_ADDR_UNSPECIFIED(&sin6->sin6_addr)) in sctp_process_asconf_add_ip()
324 struct sockaddr_in6 *sin6; in sctp_process_asconf_delete_ip() local
[all …]
Dsctp_pcb.c734 struct sockaddr_in6 *sin6; local
736 sin6 = &sctp_ifap->address.sin6;
738 (IN6_IS_ADDR_LOOPBACK(&sin6->sin6_addr))) {
741 if (IN6_IS_ADDR_LINKLOCAL(&sin6->sin6_addr)) {
1013 struct sockaddr_in6 *sin6, *rsin6; local
1017 sin6 = &sctp_ifa->address.sin6;
1021 &sin6->sin6_addr) != 0) {
1025 if (IN6_IS_ADDR_LINKLOCAL(&sin6->sin6_addr)) {
1029 if (sin6->sin6_scope_id == 0) {
1031 if (sa6_recoverscope(sin6) != 0)
[all …]
Dsctputil.c2891 struct sockaddr_in6 *sin6; in sctp_notify_peer_addr_change() local
2896 sin6 = (struct sockaddr_in6 *)&spc->spc_aaddr; in sctp_notify_peer_addr_change()
2897 if (IN6_IS_SCOPE_LINKLOCAL(&sin6->sin6_addr)) { in sctp_notify_peer_addr_change()
2898 if (sin6->sin6_scope_id == 0) { in sctp_notify_peer_addr_change()
2901 (void)sa6_recoverscope(sin6); in sctp_notify_peer_addr_change()
2903 (void)in6_recoverscope(sin6, &sin6->sin6_addr, in sctp_notify_peer_addr_change()
2908 in6_clearscope(&sin6->sin6_addr); in sctp_notify_peer_addr_change()
4487 struct sockaddr_in6 *sin6; local
4489 sin6 = (struct sockaddr_in6 *)sa;
4492 ntohs(sin6->sin6_addr.s6_addr16[0]),
[all …]
Dsctp_output.c1929 struct sockaddr_in6 *sin6; in sctp_is_address_in_scope() local
1943 sin6 = &ifa->address.sin6; in sctp_is_address_in_scope()
1944 if (IN6_IS_ADDR_UNSPECIFIED(&sin6->sin6_addr)) { in sctp_is_address_in_scope()
1949 (IN6_IS_ADDR_LINKLOCAL(&sin6->sin6_addr))) { in sctp_is_address_in_scope()
1953 (IN6_IS_ADDR_SITELOCAL(&sin6->sin6_addr))) { in sctp_is_address_in_scope()
2037 struct sockaddr_in6 *sin6; in sctp_add_addr_to_mbuf() local
2039 sin6 = &ifa->address.sin6; in sctp_add_addr_to_mbuf()
2043 memcpy(ipv6p->addr, &sin6->sin6_addr, in sctp_add_addr_to_mbuf()
2112 &sctp_ifap->address.sin6.sin6_addr) != 0)) { in sctp_add_addresses_to_i_ia()
2162 &sctp_ifap->address.sin6.sin6_addr) != 0)) { in sctp_add_addresses_to_i_ia()
[all …]
Dsctp_timer.c1471 struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)&net->ro._l_addr; local
1475 (void)in6_embedscope(&sin6->sin6_addr, sin6, NULL, NULL);
1477 (void)in6_embedscope(&sin6->sin6_addr, sin6, NULL, NULL, NULL);
1480 (void)sa6_embedscope(sin6, MODULE_GLOBAL(ip6_use_defzone));
1482 (void)in6_embedscope(&sin6->sin6_addr, sin6);
1493 struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)&net->ro._l_addr; local
1495 (void)sa6_recoverscope(sin6);
1497 (void)in6_recoverscope(sin6, &sin6->sin6_addr, NULL);
Dsctp_usrreq.c1723 struct sockaddr_in6 *sin6; local
1728 sin6 = &sctp_ifa->address.sin6;
1729 if (IN6_IS_ADDR_UNSPECIFIED(&sin6->sin6_addr)) {
1738 &sin6->sin6_addr) != 0) {
1742 if (IN6_IS_ADDR_LINKLOCAL(&sin6->sin6_addr)) {
1746 if (sin6->sin6_scope_id == 0) {
1748 if (sa6_recoverscope(sin6) != 0)
1756 lsa6 = *sin6;
1766 sin6 = &lsa6;
1772 (IN6_IS_ADDR_SITELOCAL(&sin6->sin6_addr))) {
[all …]
Dsctp_sysctl.c331 struct sockaddr_in6 *sin6; in sctp_sysctl_copy_out_local_addresses() local
336 sin6 = &sctp_ifa->address.sin6; in sctp_sysctl_copy_out_local_addresses()
337 if (IN6_IS_ADDR_UNSPECIFIED(&sin6->sin6_addr)) in sctp_sysctl_copy_out_local_addresses()
341 &sin6->sin6_addr) != 0) { in sctp_sysctl_copy_out_local_addresses()
345 if (IN6_IS_ADDR_LINKLOCAL(&sin6->sin6_addr)) { in sctp_sysctl_copy_out_local_addresses()
349 if (sin6->sin6_scope_id == 0) { in sctp_sysctl_copy_out_local_addresses()
352 if (sa6_recoverscope(sin6) != 0) in sctp_sysctl_copy_out_local_addresses()
355 lsa6 = *sin6; in sctp_sysctl_copy_out_local_addresses()
359 sin6 = &lsa6; in sctp_sysctl_copy_out_local_addresses()
364 if ((site_scope == 0) && (IN6_IS_ADDR_SITELOCAL(&sin6->sin6_addr))) in sctp_sysctl_copy_out_local_addresses()
Dsctp_input.c627 store.sin6.sin6_family = cp->heartbeat.hb_info.addr_family; in sctp_handle_heartbeat_ack()
629 store.sin6.sin6_len = cp->heartbeat.hb_info.addr_len; in sctp_handle_heartbeat_ack()
631 store.sin6.sin6_port = stcb->rport; in sctp_handle_heartbeat_ack()
632 memcpy(&store.sin6.sin6_addr, cp->heartbeat.hb_info.address, sizeof(struct in6_addr)); in sctp_handle_heartbeat_ack()
2327 memset(&store.sin6, 0, sizeof(struct sockaddr_in6));
2328 store.sin6.sin6_family = AF_INET6;
2330 store.sin6.sin6_len = sizeof(struct sockaddr_in6);
2332 store.sin6.sin6_scope_id = cookie->scope_id;
2333 memcpy(&store.sin6.sin6_addr, cookie->laddress, sizeof(struct in6_addr));
2482 struct sockaddr_in6 sin6; local
[all …]
/external/ipsec-tools/src/racoon/
Dgrabmyaddr.c338 struct sockaddr_in6 *sin6; in grab_myaddrs() local
384 sin6 = (struct sockaddr_in6 *)p->addr; in grab_myaddrs()
385 if (IN6_IS_ADDR_LINKLOCAL(&sin6->sin6_addr) in grab_myaddrs()
386 || IN6_IS_ADDR_SITELOCAL(&sin6->sin6_addr)) { in grab_myaddrs()
387 sin6->sin6_scope_id = in grab_myaddrs()
388 ntohs(*(u_int16_t *)&sin6->sin6_addr.s6_addr[2]); in grab_myaddrs()
389 sin6->sin6_addr.s6_addr[2] = 0; in grab_myaddrs()
390 sin6->sin6_addr.s6_addr[3] = 0; in grab_myaddrs()
395 sin6 = (struct sockaddr_in6 *)p->addr; in grab_myaddrs()
396 if (IN6_IS_ADDR_LINKLOCAL(&sin6->sin6_addr) in grab_myaddrs()
[all …]
Dsockmisc.c396 struct sockaddr_in6 *sin6; local
436 && otolen >= sizeof(*sin6)) {
438 *tolen = sizeof(*sin6);
439 sin6 = (struct sockaddr_in6 *)to;
440 memset(sin6, 0, sizeof(*sin6));
441 sin6->sin6_family = AF_INET6;
443 sin6->sin6_len = sizeof(*sin6);
445 memcpy(&sin6->sin6_addr, &pi->ipi6_addr,
446 sizeof(sin6->sin6_addr));
448 if (IN6_IS_ADDR_LINKLOCAL(&sin6->sin6_addr))
[all …]
Dsockmisc.h41 struct sockaddr_in6 sin6; member
/external/tcpdump/missing/
Dgetnameinfo.c182 struct sockaddr_in6 *sin6; local
183 sin6 = (struct sockaddr_in6 *)sa;
184 switch (sin6->sin6_addr.s6_addr[0]) {
186 if (IN6_IS_ADDR_V4MAPPED(&sin6->sin6_addr))
188 else if (IN6_IS_ADDR_LOOPBACK(&sin6->sin6_addr))
194 if (IN6_IS_ADDR_LINKLOCAL(&sin6->sin6_addr)) {
197 else if (IN6_IS_ADDR_MULTICAST(&sin6->sin6_addr))
/external/mdnsresponder/mDNSPosix/
DmDNSUNP.c92 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 …]
DmDNSPosix.c133 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/tcpdump/
Dprint-esp.c68 struct sockaddr_in6 sin6; member
441 struct sockaddr_in6 *sin6; in esp_print_decode_onesecret() local
456 sin6 = (struct sockaddr_in6 *)&sa1.daddr; in esp_print_decode_onesecret()
457 if (inet_pton(AF_INET6, spikey, &sin6->sin6_addr) == 1) { in esp_print_decode_onesecret()
459 sin6->sin6_len = sizeof(struct sockaddr_in6); in esp_print_decode_onesecret()
461 sin6->sin6_family = AF_INET6; in esp_print_decode_onesecret()
613 struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)&sa->daddr; in esp_print() local
615 sin6->sin6_family == AF_INET6 && in esp_print()
616 UNALIGNED_MEMCMP(&sin6->sin6_addr, &ip6->ip6_dst, in esp_print()
Dprint-isakmp.c272 struct sockaddr_in6 *sin6; in cookie_record() local
310 sin6 = (struct sockaddr_in6 *)&cookiecache[ninitiator].iaddr; in cookie_record()
312 sin6->sin6_len = sizeof(struct sockaddr_in6); in cookie_record()
314 sin6->sin6_family = AF_INET6; in cookie_record()
315 UNALIGNED_MEMCPY(&sin6->sin6_addr, &ip6->ip6_src, sizeof(ip6->ip6_src)); in cookie_record()
316 sin6 = (struct sockaddr_in6 *)&cookiecache[ninitiator].raddr; in cookie_record()
318 sin6->sin6_len = sizeof(struct sockaddr_in6); in cookie_record()
320 sin6->sin6_family = AF_INET6; in cookie_record()
321 UNALIGNED_MEMCPY(&sin6->sin6_addr, &ip6->ip6_dst, sizeof(ip6->ip6_dst)); in cookie_record()
342 struct sockaddr_in6 *sin6; in cookie_sidecheck() local
[all …]
/external/ipsec-tools/src/libipsec/
Dkey_debug.c785 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/chromium_org/third_party/boringssl/src/tool/
Dclient.cc99 struct sockaddr_in6 *sin6 = in Connect() local
102 inet_ntop(result->ai_family, &sin6->sin6_addr, buf, sizeof(buf)), in Connect()
103 ntohs(sin6->sin6_port)); in Connect()
/external/chromium_org/native_client_sdk/src/libraries/third_party/newlib-extras/netinet6/
Din6.h597 struct sockaddr_in6 *sin6));
599 struct sockaddr_in6 *sin6));
604 #define sin6tosa(sin6) ((struct sockaddr *)(sin6)) argument
/external/android-clat/
Dtranslate.c480 static struct sockaddr_in6 sin6 = { AF_INET6, 0, 0, { { { 0, 0, 0, 0 } } }, 0 }; in send_rawv6() local
482 .msg_name = &sin6, in send_rawv6()
483 .msg_namelen = sizeof(sin6), in send_rawv6()
488 sin6.sin6_addr = ((struct ip6_hdr *) out[CLAT_POS_IPHDR].iov_base)->ip6_dst; in send_rawv6()
/external/libpcap/Win32/Src/
Dgetaddrinfo.c860 struct sockaddr_in6 *sin6;
903 sin6 = (struct sockaddr_in6 *)cur->ai_addr;
904 if (IN6_IS_ADDR_LINKLOCAL(&sin6->sin6_addr) ||
905 IN6_IS_ADDR_MC_LINKLOCAL(&sin6->sin6_addr))
906 sin6->sin6_scope_id = scope;
/external/wpa_supplicant_8/src/radius/
Dradius_server.c1175 struct sockaddr_in6 sin6; in radius_server_receive_auth() member
1201 if (inet_ntop(AF_INET6, &from.sin6.sin6_addr, abuf, in radius_server_receive_auth()
1204 from_port = ntohs(from.sin6.sin6_port); in radius_server_receive_auth()
1210 &from.sin6.sin6_addr, 1); in radius_server_receive_auth()
1285 struct sockaddr_in6 sin6; in radius_server_receive_acct() member
1313 if (inet_ntop(AF_INET6, &from.sin6.sin6_addr, abuf, in radius_server_receive_acct()
1316 from_port = ntohs(from.sin6.sin6_port); in radius_server_receive_acct()
1322 &from.sin6.sin6_addr, 1); in radius_server_receive_acct()
/external/chromium_org/third_party/usrsctp/usrsctplib/
Duser_socket.c2356 struct sockaddr_in6 *sin6; local
2414 sin6 = (struct sockaddr_in6 *)sa;
2415 if (sin6->sin6_port) {
2419 if (sport != sin6->sin6_port) {
2425 sport = sin6->sin6_port;
2495 sin6 = (struct sockaddr_in6 *)gaddrs->addr;
2496 sin6->sin6_port = sport;

12