Home
last modified time | relevance | path

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

12

/external/syslinux/gpxe/src/net/
Dicmpv6.c29 struct sockaddr_in6 sin6; in icmp6_send_solicit() member
52 st_dest.sin6.sin_family = AF_INET6; in icmp6_send_solicit()
53 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()
Dipv6.c300 struct sockaddr_in6 sin6; in ipv6_rx() member
332 src.sin6.sin_family = AF_INET6; in ipv6_rx()
333 src.sin6.sin6_addr = ip6hdr->src; in ipv6_rx()
335 dest.sin6.sin_family = AF_INET6; in ipv6_rx()
336 dest.sin6.sin6_addr = ip6hdr->dest; in ipv6_rx()
/external/ltp/testcases/network/lib6/
Dasapi_03.c197 struct sockaddr_in6 sin6; in sendall() local
210 memset(&sin6, 0, sizeof(sin6)); in sendall()
211 sin6.sin6_family = AF_INET6; in sendall()
212 sin6.sin6_addr = in6addr_loopback; in sendall()
215 msg.msg_name = &sin6; in sendall()
216 msg.msg_namelen = sizeof(sin6); in sendall()
242 struct sockaddr_in6 sin6; in so_test() local
257 memset(&sin6, 0, sizeof(sin6)); in so_test()
258 sin6.sin6_family = AF_INET6; in so_test()
259 sin6.sin6_addr = in6addr_loopback; in so_test()
[all …]
Dasapi_02.c95 struct sockaddr_in6 sin6; in ic6_send1() local
105 memset(&sin6, 0, sizeof(sin6)); in ic6_send1()
106 sin6.sin6_family = AF_INET6; in ic6_send1()
107 sin6.sin6_addr = in6addr_loopback; in ic6_send1()
108 if (sendto(s, &ic6, sizeof(ic6), 0, (struct sockaddr *)&sin6, in ic6_send1()
109 sizeof(sin6)) == -1) { in ic6_send1()
Din6_01.c120 struct sockaddr_in6 sin6; in test_sockaddr_in6() local
123 sin6.sin6_family = AF_INET6; in test_sockaddr_in6()
124 sin6.sin6_port = ui16; in test_sockaddr_in6()
125 sin6.sin6_flowinfo = ui32; in test_sockaddr_in6()
126 sin6.sin6_addr = in6; in test_sockaddr_in6()
127 sin6.sin6_scope_id = ui32; in test_sockaddr_in6()
/external/libevent/
Devutil.c557 struct sockaddr_in6 sin6, sin6_out; in evutil_check_interfaces() local
576 memset(&sin6, 0, sizeof(sin6)); in evutil_check_interfaces()
577 sin6.sin6_family = AF_INET6; in evutil_check_interfaces()
578 sin6.sin6_port = htons(53); in evutil_check_interfaces()
579 r = evutil_inet_pton(AF_INET6, "2001:4860:b002::68", &sin6.sin6_addr); in evutil_check_interfaces()
610 connect(fd, (struct sockaddr*)&sin6, sizeof(sin6)) == 0 && in evutil_check_interfaces()
841 struct sockaddr_in6 sin6; in evutil_getaddrinfo_common() local
842 memset(&sin6, 0, sizeof(sin6)); in evutil_getaddrinfo_common()
843 sin6.sin6_family = AF_INET6; in evutil_getaddrinfo_common()
844 sin6.sin6_port = htons(port); in evutil_getaddrinfo_common()
[all …]
Dbufferevent_async.c629 struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)&ss; in bufferevent_async_connect() local
630 sin6->sin6_family = AF_INET6; in bufferevent_async_connect()
631 sin6->sin6_addr = in6addr_any; in bufferevent_async_connect()
Devdns.c366 struct sockaddr_in6 sin6; member
4312 struct sockaddr_in6 sin6; in evdns_getaddrinfo_gotresolve() local
4419 memset(&sin6, 0, sizeof(sin6)); in evdns_getaddrinfo_gotresolve()
4420 sin6.sin6_family = AF_INET6; in evdns_getaddrinfo_gotresolve()
4421 sin6.sin6_port = htons(data->port); in evdns_getaddrinfo_gotresolve()
4423 sa = (struct sockaddr *)&sin6; in evdns_getaddrinfo_gotresolve()
4424 socklen = sizeof(sin6); in evdns_getaddrinfo_gotresolve()
4426 addrp = &sin6.sin6_addr.s6_addr; in evdns_getaddrinfo_gotresolve()
/external/ipsec-tools/src/racoon/
Dgrabmyaddr.c342 struct sockaddr_in6 *sin6; in grab_myaddrs() local
388 sin6 = (struct sockaddr_in6 *)p->addr; in grab_myaddrs()
389 if (IN6_IS_ADDR_LINKLOCAL(&sin6->sin6_addr) in grab_myaddrs()
390 || IN6_IS_ADDR_SITELOCAL(&sin6->sin6_addr)) { in grab_myaddrs()
391 sin6->sin6_scope_id = 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()
399 sin6 = (struct sockaddr_in6 *)p->addr; in grab_myaddrs()
400 if (IN6_IS_ADDR_LINKLOCAL(&sin6->sin6_addr) in grab_myaddrs()
[all …]
Dsockmisc.c407 struct sockaddr_in6 *sin6; local
447 && otolen >= sizeof(*sin6)) {
449 *tolen = sizeof(*sin6);
450 sin6 = (struct sockaddr_in6 *)to;
451 memset(sin6, 0, sizeof(*sin6));
452 sin6->sin6_family = AF_INET6;
454 sin6->sin6_len = sizeof(*sin6);
456 memcpy(&sin6->sin6_addr, &pi->ipi6_addr,
457 sizeof(sin6->sin6_addr));
459 if (IN6_IS_ADDR_LINKLOCAL(&sin6->sin6_addr))
[all …]
Dsockmisc.h41 struct sockaddr_in6 sin6; member
/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/boringssl/src/crypto/bio/
Dbio_test.cc75 struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *) &ss; in TEST() local
82 len = sizeof(*sin6); in TEST()
83 ASSERT_EQ(1, inet_pton(AF_INET6, "::1", &sin6->sin6_addr)) in TEST()
85 if (bind(listening_sock, (struct sockaddr *)sin6, sizeof(*sin6)) == -1) { in TEST()
106 ntohs(sin6->sin6_port)); in TEST()
/external/ltp/lib/
Dsafe_net.c46 struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)sa; in tst_sock_addr() local
49 if (!inet_ntop(AF_INET6, &sin6->sin6_addr, res + 1, len - 1)) in tst_sock_addr()
52 if (ntohs(sin6->sin6_port) != 0) { in tst_sock_addr()
54 ntohs(sin6->sin6_port)); in tst_sock_addr()
/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/dhcpcd-6.8.2/
Dif.c200 struct sockaddr_in6 *sin6, *net6; in if_learnaddrs1() local
231 sin6 = (struct sockaddr_in6 *)(void *)ifa->ifa_addr; in if_learnaddrs1()
234 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()
Dif-bsd.c870 struct sockaddr_in6 *sin6; in if_copyrt6() local
873 sin6 = (struct sockaddr_in6 *)(void *)rti_info[RTAX_NETMASK]; in if_copyrt6()
874 rt->net = sin6->sin6_addr; in if_copyrt6()
875 e = sin6->sin6_len - offsetof(struct sockaddr_in6, sin6_addr); in if_copyrt6()
1165 struct sockaddr_in6 *sin6; in if_managelink() local
1315 sin6 = (struct sockaddr_in6*)(void *) in if_managelink()
1317 ia6 = sin6->sin6_addr; in if_managelink()
1319 sin6 = (struct sockaddr_in6*)(void *) in if_managelink()
1321 net6 = sin6->sin6_addr; in if_managelink()
/external/android-clat/
Dtranslate.c476 static struct sockaddr_in6 sin6 = { AF_INET6, 0, 0, { { { 0, 0, 0, 0 } } }, 0 }; in send_rawv6() local
478 .msg_name = &sin6, in send_rawv6()
479 .msg_namelen = sizeof(sin6), in send_rawv6()
484 sin6.sin6_addr = ((struct ip6_hdr *) out[CLAT_POS_IPHDR].iov_base)->ip6_dst; in send_rawv6()
/external/boringssl/src/tool/
Dtransport_common.cc138 struct sockaddr_in6 *sin6 = in Connect() local
141 inet_ntop(result->ai_family, &sin6->sin6_addr, buf, sizeof(buf)), in Connect()
142 ntohs(sin6->sin6_port)); in Connect()
/external/python/cpython2/Modules/
Dsocketmodule.c3412 struct sockaddr_in6 sin6; local
3413 memset(&sin6, 0, sizeof(sin6));
3414 sin6.sin6_family = af;
3416 sin6.sin6_len = sizeof(sin6);
3418 memcpy(&sin6.sin6_addr, *pch, sizeof(sin6.sin6_addr));
3419 tmp = makeipaddr((struct sockaddr *)&sin6,
3420 sizeof(sin6));
3422 if (pch == h->h_addr_list && alen >= sizeof(sin6))
3423 memcpy((char *) addr, &sin6, sizeof(sin6));
4338 struct sockaddr_in6 *sin6; local
[all …]
/external/wpa_supplicant_8/src/radius/
Dradius_server.c1198 struct sockaddr_in6 sin6; in radius_server_receive_auth() member
1224 if (inet_ntop(AF_INET6, &from.sin6.sin6_addr, abuf, in radius_server_receive_auth()
1227 from_port = ntohs(from.sin6.sin6_port); in radius_server_receive_auth()
1233 &from.sin6.sin6_addr, 1); in radius_server_receive_auth()
1308 struct sockaddr_in6 sin6; in radius_server_receive_acct() member
1336 if (inet_ntop(AF_INET6, &from.sin6.sin6_addr, abuf, in radius_server_receive_acct()
1339 from_port = ntohs(from.sin6.sin6_port); in radius_server_receive_acct()
1345 &from.sin6.sin6_addr, 1); in radius_server_receive_acct()
/external/valgrind/coregrind/m_syswrap/
Dsyswrap-generic.c1120 struct vki_sockaddr_in6* sin6 = (struct vki_sockaddr_in6 *)sa; in pre_mem_read_sockaddr() local
1158 (Addr) &sin6->sin6_port, sizeof (sin6->sin6_port) ); in pre_mem_read_sockaddr()
1161 (Addr) &sin6->sin6_flowinfo, sizeof (sin6->sin6_flowinfo) ); in pre_mem_read_sockaddr()
1164 (Addr) &sin6->sin6_addr, sizeof (sin6->sin6_addr) ); in pre_mem_read_sockaddr()
1167 (Addr) &sin6->sin6_scope_id, sizeof (sin6->sin6_scope_id) ); in pre_mem_read_sockaddr()
/external/ppp/pppd/
Dsys-linux.c160 #define IN6_LLADDR_FROM_EUI64(sin6, eui64) do { \ argument
161 memset(&sin6.s6_addr, 0, sizeof(struct in6_addr)); \
162 sin6.s6_addr16[0] = htons(0xfe80); \
163 eui64_copy(eui64, sin6.s6_addr32[2]); \
Dsys-solaris.c1908 struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)&laddr; local
1923 IN6_LLTOKEN_FROM_EUI64(lifr, sin6, o);
1932 IN6_LLADDR_FROM_EUI64(lifr, sin6, o);
1940 IN6_LLADDR_FROM_EUI64(lifr, sin6, h);

12