Home
last modified time | relevance | path

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

12

/third_party/gstreamer/gstplugins_bad/ext/sctp/usrsctp/usrsctplib/netinet6/
Dsctp6_usrreq.c71 in6_sin6_2_sin(struct sockaddr_in *sin, struct sockaddr_in6 *sin6) in in6_sin6_2_sin() argument
81 sin->sin_port = sin6->sin6_port; in in6_sin6_2_sin()
83 temp = sin6->sin6_addr.s6_addr16[7]; in in6_sin6_2_sin()
85 temp = temp | sin6->sin6_addr.s6_addr16[6]; in in6_sin6_2_sin()
88 sin->sin_addr.s_addr = sin6->sin6_addr.s6_addr32[3]; in in6_sin6_2_sin()
96 struct sockaddr_in6 sin6; in in6_sin6_2_sin_in_sock() local
99 sin6 = *(struct sockaddr_in6 *)nam; in in6_sin6_2_sin_in_sock()
101 in6_sin6_2_sin(sin_p, &sin6); in in6_sin6_2_sin_in_sock()
105 in6_sin_2_v4mapsin6(const struct sockaddr_in *sin, struct sockaddr_in6 *sin6) in in6_sin_2_v4mapsin6() argument
107 memset(sin6, 0, sizeof(struct sockaddr_in6)); in in6_sin_2_v4mapsin6()
[all …]
/third_party/node/deps/cares/src/lib/
Dares__addrinfo_localhost.c76 struct sockaddr_in6 *sin6 = ares_malloc(sizeof(*sin6)); in ares_append_ai_node() local
77 if (!sin6) in ares_append_ai_node()
82 memset(sin6, 0, sizeof(*sin6)); in ares_append_ai_node()
83 memcpy(&sin6->sin6_addr.s6_addr, adata, sizeof(sin6->sin6_addr.s6_addr)); in ares_append_ai_node()
84 sin6->sin6_family = AF_INET6; in ares_append_ai_node()
85 sin6->sin6_port = htons(port); in ares_append_ai_node()
87 node->ai_addr = (struct sockaddr *)sin6; in ares_append_ai_node()
89 node->ai_addrlen = sizeof(*sin6); in ares_append_ai_node()
90 node->ai_addr = (struct sockaddr *)sin6; in ares_append_ai_node()
/third_party/libcoap/src/
Daddress.c37 case AF_INET6: return ntohs(addr->addr.sin6.sin6_port); in coap_address_get_port()
52 addr->addr.sin6.sin6_port = htons(port); in coap_address_set_port()
74 return a->addr.sin6.sin6_port == b->addr.sin6.sin6_port && in coap_address_equals()
75 memcmp(&a->addr.sin6.sin6_addr, &b->addr.sin6.sin6_addr, in coap_address_equals()
113 return IN6_IS_ADDR_MULTICAST(&a->addr.sin6.sin6_addr) || in coap_is_mcast()
114 (IN6_IS_ADDR_V4MAPPED(&a->addr.sin6.sin6_addr) && in coap_is_mcast()
115 IN_MULTICAST(ntohl(a->addr.sin6.sin6_addr.s6_addr[12]))); in coap_is_mcast()
146 const void *addrptr = &addr->addr.sin6.sin6_addr; in coap_address_ntop()
Dcoap_io_riot.c115 packet->addr_info.remote.addr.sin6.sin6_family = AF_INET6; in coap_network_read()
116 memcpy(&packet->addr_info.remote.addr.sin6.sin6_addr, in coap_network_read()
118 memcpy(&packet->addr_info.remote.addr.sin6.sin6_port, in coap_network_read()
123 packet->addr_info.local.addr.sin6.sin6_family = AF_INET6; in coap_network_read()
124 memcpy(&packet->addr_info.local.addr.sin6.sin6_addr, in coap_network_read()
127 .addr.sin6.sin6_port, &udp_hdr->dst_port, sizeof(udp_hdr->src_port)); in coap_network_read()
158 case AF_INET6: return addr->addr.sin6.sin6_port; in get_port()
179 return IN6_IS_ADDR_UNSPECIFIED(&a->addr.sin6.sin6_addr) || in address_equals()
180 (memcmp(&a->addr.sin6.sin6_addr, b->u8, sizeof(struct in6_addr)) == 0); in address_equals()
Dcoap_io.c352 if (connect_addr.addr.sin6.sin6_port == 0)
353 connect_addr.addr.sin6.sin6_port = htons(default_port);
701 if (IN6_IS_ADDR_V4MAPPED(&session->addr_info.local.addr.sin6.sin6_addr)) {
716 session->addr_info.local.addr.sin6.sin6_addr.s6_addr + 12,
728 session->addr_info.local.addr.sin6.sin6_addr.s6_addr + 12,
745 &session->addr_info.local.addr.sin6.sin6_addr,
957 memcpy(&packet->addr_info.local.addr.sin6.sin6_addr,
973 memset(packet->addr_info.local.addr.sin6.sin6_addr.s6_addr, 0, 10);
974 packet->addr_info.local.addr.sin6.sin6_addr.s6_addr[10] = 0xff;
975 packet->addr_info.local.addr.sin6.sin6_addr.s6_addr[11] = 0xff;
[all …]
/third_party/libcoap/include/coap3/
Daddress.h109 struct sockaddr_in6 sin6; member
138 &a->addr.sin6.sin6_addr, in _coap_address_isany_impl()
169 dst->addr.sin6.sin6_family = src->addr.sin6.sin6_family; in coap_address_copy()
170 dst->addr.sin6.sin6_addr = src->addr.sin6.sin6_addr; in coap_address_copy()
171 dst->addr.sin6.sin6_port = src->addr.sin6.sin6_port; in coap_address_copy()
172 dst->addr.sin6.sin6_scope_id = src->addr.sin6.sin6_scope_id; in coap_address_copy()
/third_party/musl/src/network/
Dres_msend.c38 struct sockaddr_in6 sin6; in __res_msend_rc() member
62 sl = sizeof sa.sin6; in __res_msend_rc()
63 memcpy(&ns[nns].sin6.sin6_addr, iplit->addr, 16); in __res_msend_rc()
64 ns[nns].sin6.sin6_port = htons(53); in __res_msend_rc()
65 ns[nns].sin6.sin6_scope_id = iplit->scopeid; in __res_msend_rc()
66 ns[nns].sin6.sin6_family = family = AF_INET6; in __res_msend_rc()
97 memcpy(ns[i].sin6.sin6_addr.s6_addr+12, in __res_msend_rc()
99 memcpy(ns[i].sin6.sin6_addr.s6_addr, in __res_msend_rc()
101 ns[i].sin6.sin6_family = AF_INET6; in __res_msend_rc()
102 ns[i].sin6.sin6_flowinfo = 0; in __res_msend_rc()
[all …]
Dgethostbyaddr_r.c16 struct sockaddr_in6 sin6; in gethostbyaddr_r() member
18 socklen_t sl = af==AF_INET6 ? sizeof sa.sin6 : sizeof sa.sin; in gethostbyaddr_r()
24 if (af==AF_INET6 && l==16) memcpy(&sa.sin6.sin6_addr, a, 16); in gethostbyaddr_r()
Dgetaddrinfo.c132 out[k].sa.sin6.sin6_family = AF_INET6; in getaddrinfo()
133 out[k].sa.sin6.sin6_port = htons(ports[j].port); in getaddrinfo()
134 out[k].sa.sin6.sin6_scope_id = addrs[i].scopeid; in getaddrinfo()
135 memcpy(&out[k].sa.sin6.sin6_addr, &addrs[i].addr, 16); in getaddrinfo()
Dlookup.h27 struct sockaddr_in6 sin6; member
88 struct sockaddr_in6 sin6; member
/third_party/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 …]
Din6_01.c71 struct sockaddr_in6 sin6; in test_sockaddr_in6() local
75 sin6.sin6_family = AF_INET6; in test_sockaddr_in6()
76 sin6.sin6_port = ui16; in test_sockaddr_in6()
77 sin6.sin6_flowinfo = ui32; in test_sockaddr_in6()
78 sin6.sin6_addr = in6; in test_sockaddr_in6()
79 sin6.sin6_scope_id = ui32; in test_sockaddr_in6()
82 bind(sd, (struct sockaddr *)&sin6, sizeof(sin6)); in test_sockaddr_in6()
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()
/third_party/gstreamer/gstplugins_bad/ext/sctp/usrsctp/usrsctplib/netinet/
Dsctp_asconf.c173 struct sockaddr_in6 *sin6; in sctp_process_asconf_add_ip() local
223 sin6 = &store.sin6; in sctp_process_asconf_add_ip()
224 memset(sin6, 0, sizeof(*sin6)); in sctp_process_asconf_add_ip()
225 sin6->sin6_family = AF_INET6; in sctp_process_asconf_add_ip()
227 sin6->sin6_len = sizeof(struct sockaddr_in6); in sctp_process_asconf_add_ip()
229 sin6->sin6_port = stcb->rport; in sctp_process_asconf_add_ip()
230 memcpy((caddr_t)&sin6->sin6_addr, v6addr->addr, in sctp_process_asconf_add_ip()
232 if (IN6_IS_ADDR_MULTICAST(&sin6->sin6_addr)) { in sctp_process_asconf_add_ip()
235 if (IN6_IS_ADDR_UNSPECIFIED(&sin6->sin6_addr)) in sctp_process_asconf_add_ip()
337 struct sockaddr_in6 *sin6; in sctp_process_asconf_delete_ip() local
[all …]
Dsctp_pcb.c732 struct sockaddr_in6 *sin6; local
734 sin6 = &sctp_ifap->address.sin6;
736 (IN6_IS_ADDR_LOOPBACK(&sin6->sin6_addr))) {
739 if (IN6_IS_ADDR_LINKLOCAL(&sin6->sin6_addr)) {
1010 struct sockaddr_in6 *sin6, *rsin6; local
1014 sin6 = &sctp_ifa->address.sin6;
1018 &sin6->sin6_addr) != 0) {
1022 if (IN6_IS_ADDR_LINKLOCAL(&sin6->sin6_addr)) {
1026 if (sin6->sin6_scope_id == 0) {
1028 if (sa6_recoverscope(sin6) != 0)
[all …]
Dsctp_usrreq.c1612 struct sockaddr_in6 *sin6; local
1617 sin6 = &sctp_ifa->address.sin6;
1618 if (IN6_IS_ADDR_UNSPECIFIED(&sin6->sin6_addr)) {
1627 &sin6->sin6_addr) != 0) {
1631 if (IN6_IS_ADDR_LINKLOCAL(&sin6->sin6_addr)) {
1635 if (sin6->sin6_scope_id == 0) {
1637 if (sa6_recoverscope(sin6) != 0)
1645 lsa6 = *sin6;
1655 sin6 = &lsa6;
1661 (IN6_IS_ADDR_SITELOCAL(&sin6->sin6_addr))) {
[all …]
Dsctp_output.c1930 struct sockaddr_in6 *sin6; in sctp_is_address_in_scope() local
1942 sin6 = &ifa->address.sin6; in sctp_is_address_in_scope()
1943 if (IN6_IS_ADDR_UNSPECIFIED(&sin6->sin6_addr)) { in sctp_is_address_in_scope()
1948 (IN6_IS_ADDR_LINKLOCAL(&sin6->sin6_addr))) { in sctp_is_address_in_scope()
1952 (IN6_IS_ADDR_SITELOCAL(&sin6->sin6_addr))) { in sctp_is_address_in_scope()
2036 struct sockaddr_in6 *sin6; in sctp_add_addr_to_mbuf() local
2038 sin6 = &ifa->address.sin6; in sctp_add_addr_to_mbuf()
2042 memcpy(ipv6p->addr, &sin6->sin6_addr, in sctp_add_addr_to_mbuf()
2111 &sctp_ifap->address.sin6.sin6_addr) != 0)) { in sctp_add_addresses_to_i_ia()
2161 &sctp_ifap->address.sin6.sin6_addr) != 0)) { in sctp_add_addresses_to_i_ia()
[all …]
Dsctputil.c3460 struct sockaddr_in6 *sin6; in sctp_notify_peer_addr_change() local
3465 sin6 = (struct sockaddr_in6 *)&spc->spc_aaddr; in sctp_notify_peer_addr_change()
3466 if (IN6_IS_SCOPE_LINKLOCAL(&sin6->sin6_addr)) { in sctp_notify_peer_addr_change()
3467 if (sin6->sin6_scope_id == 0) { in sctp_notify_peer_addr_change()
3470 (void)sa6_recoverscope(sin6); in sctp_notify_peer_addr_change()
3472 (void)in6_recoverscope(sin6, &sin6->sin6_addr, in sctp_notify_peer_addr_change()
3477 in6_clearscope(&sin6->sin6_addr); in sctp_notify_peer_addr_change()
5048 struct sockaddr_in6 *sin6; local
5050 sin6 = (struct sockaddr_in6 *)sa;
5053 ntohs(sin6->sin6_addr.s6_addr16[0]),
[all …]
Dsctp_timer.c1502 struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)&net->ro._l_addr; local
1506 (void)in6_embedscope(&sin6->sin6_addr, sin6, NULL, NULL);
1508 (void)in6_embedscope(&sin6->sin6_addr, sin6, NULL, NULL, NULL);
1511 (void)sa6_embedscope(sin6, MODULE_GLOBAL(ip6_use_defzone));
1513 (void)in6_embedscope(&sin6->sin6_addr, sin6);
1524 struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)&net->ro._l_addr; local
1526 (void)sa6_recoverscope(sin6);
1528 (void)in6_recoverscope(sin6, &sin6->sin6_addr, NULL);
/third_party/libcoap/tests/
Dtest_session.c152 laddr.addr.sin6.sin6_family = AF_INET6; in t_session6()
153 laddr.addr.sin6.sin6_addr = in6addr_any; in t_session6()
154 laddr.addr.sin6.sin6_port = htons(COAP_DEFAULT_PORT); in t_session6()
157 saddr.addr.sin6.sin6_addr = in6addr_loopback; in t_session6()
158 saddr.addr.sin6.sin6_port = htons(20000); in t_session6()
177 addr.addr.sin6.sin6_family = AF_INET6; in t_session_tests_create()
178 addr.addr.sin6.sin6_addr = in6addr_any; in t_session_tests_create()
179 addr.addr.sin6.sin6_port = htons(COAP_DEFAULT_PORT); in t_session_tests_create()
184 addr.addr.sin6.sin6_addr = in6addr_loopback; in t_session_tests_create()
Dtest_wellknown.c260 addr.addr.sin6.sin6_family = AF_INET6; in t_wkc_tests_create()
261 addr.addr.sin6.sin6_addr = in6addr_any; in t_wkc_tests_create()
262 addr.addr.sin6.sin6_port = htons(COAP_DEFAULT_PORT); in t_wkc_tests_create()
266 addr.addr.sin6.sin6_addr = in6addr_loopback; in t_wkc_tests_create()
Dtest_sendqueue.c281 addr.addr.sin6.sin6_family = AF_INET6; in t_sendqueue_tests_create()
282 addr.addr.sin6.sin6_addr = in6addr_any; in t_sendqueue_tests_create()
283 addr.addr.sin6.sin6_port = htons(COAP_DEFAULT_PORT); in t_sendqueue_tests_create()
287 addr.addr.sin6.sin6_addr = in6addr_loopback; in t_sendqueue_tests_create()
/third_party/libcoap/examples/
Dcoap-rd.c328 peer->addr.sin6.sin6_addr.s6_addr[0], in add_source_address()
329 peer->addr.sin6.sin6_addr.s6_addr[1], in add_source_address()
330 peer->addr.sin6.sin6_addr.s6_addr[2], in add_source_address()
331 peer->addr.sin6.sin6_addr.s6_addr[3], in add_source_address()
332 peer->addr.sin6.sin6_addr.s6_addr[4], in add_source_address()
333 peer->addr.sin6.sin6_addr.s6_addr[5], in add_source_address()
334 peer->addr.sin6.sin6_addr.s6_addr[6], in add_source_address()
335 peer->addr.sin6.sin6_addr.s6_addr[7], in add_source_address()
336 peer->addr.sin6.sin6_addr.s6_addr[8], in add_source_address()
337 peer->addr.sin6.sin6_addr.s6_addr[9], in add_source_address()
[all …]
/third_party/musl/porting/liteos_a/user/src/network/
Dgethostbyaddr_r.c16 struct sockaddr_in6 sin6; in gethostbyaddr_r() member
18 socklen_t sl = af==AF_INET6 ? sizeof sa.sin6 : sizeof sa.sin; in gethostbyaddr_r()
23 if (af==AF_INET6 && l==16) memcpy(&sa.sin6.sin6_addr, a, 16); in gethostbyaddr_r()
/third_party/ltp/lib/
Dsafe_net.c47 struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)sa; in tst_sock_addr() local
50 if (!inet_ntop(AF_INET6, &sin6->sin6_addr, res + 1, len - 1)) in tst_sock_addr()
53 if (ntohs(sin6->sin6_port) != 0) { in tst_sock_addr()
55 ntohs(sin6->sin6_port)); in tst_sock_addr()
100 struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)sa; in tst_getsockport() local
102 return ntohs(sin6->sin6_port); in tst_getsockport()

12