Home
last modified time | relevance | path

Searched refs:sin6_port (Results 1 – 25 of 158) sorted by relevance

1234567

/third_party/grpc/src/core/lib/iomgr/
Dsockaddr_utils.cc64 addr4_out->sin_port = addr6->sin6_port; in grpc_sockaddr_is_v4mapped()
88 addr6_out->sin6_port = addr4->sin_port; in grpc_sockaddr_to_v4mapped()
122 *port_out = grpc_ntohs(addr6->sin6_port); in grpc_sockaddr_is_wildcard()
153 wild_out->sin6_port = grpc_htons(static_cast<uint16_t>(port)); in grpc_sockaddr_make_wildcard6()
178 port = grpc_ntohs(addr6->sin6_port); in grpc_sockaddr_to_string()
267 (reinterpret_cast<const grpc_sockaddr_in6*>(addr))->sin6_port); in grpc_sockaddr_get_port()
288 (reinterpret_cast<grpc_sockaddr_in6*>(addr))->sin6_port = in grpc_sockaddr_set_port()
/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()
Dcoap_io_riot.c118 memcpy(&packet->addr_info.remote.addr.sin6.sin6_port, 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()
/third_party/toybox/toys/pending/
Dtftp.c80 ((struct sockaddr_in6 *)server)->sin6_port = htons(port);
285 if (TT.af == AF_INET6) ((struct sockaddr_in6 *)&server)->sin6_port = 0; 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()
347 if ((TT.af == AF_INET6) && !((struct sockaddr_in6 *)&server)->sin6_port) in file_get()
348 ((struct sockaddr_in6 *)&server)->sin6_port = in file_get()
349 ((struct sockaddr_in6 *)&from)->sin6_port; in file_get()
/third_party/ltp/utils/sctp/func_tests/
Dtest_basic.c110 loop1.v6.sin6_port = htons(SCTP_TESTPORT_1); in main()
114 loop2.v6.sin6_port = htons(SCTP_TESTPORT_2); in main()
207 if (msgname.v6.sin6_port != htons(SCTP_TESTPORT_1)) { in main()
263 if (msgname.v6.sin6_port != htons(SCTP_TESTPORT_1)) { in main()
371 ntohs(in6_addr->sin6_port)); in main()
401 ntohs(in6_addr->sin6_port)); in main()
426 if (msgname.v6.sin6_port != htons(SCTP_TESTPORT_1)) { in main()
Dtest_inaddr_any.c102 loop.v6.sin6_port = 0; in main()
106 anyaddr.v6.sin6_port = 0; in main()
148 loop.v6.sin6_port = anyaddr.v6.sin6_port; in main()
/third_party/wpa_supplicant/wpa_supplicant-2.9/wpa_supplicant/
Dctrl_iface_udp.c101 ntohs(from->sin6_port)); in wpa_supplicant_ctrl_iface_attach()
126 if (from->sin6_port == dst->addr.sin6_port &&
132 ntohs(from->sin6_port));
173 if (from->sin6_port == dst->addr.sin6_port &&
179 ntohs(from->sin6_port));
438 addr.sin6_port = htons(port);
541 ntohs(dst->addr.sin6_port));
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant/
Dctrl_iface_udp.c101 ntohs(from->sin6_port)); in wpa_supplicant_ctrl_iface_attach()
126 if (from->sin6_port == dst->addr.sin6_port &&
132 ntohs(from->sin6_port));
173 if (from->sin6_port == dst->addr.sin6_port &&
179 ntohs(from->sin6_port));
454 addr.sin6_port = htons(port);
561 ntohs(dst->addr.sin6_port));
/third_party/libuv/test/
Dtest-udp-ipv6.c99 printf("from [%.*s]:%d\n", (int) sizeof(dst), dst, addr6->sin6_port); in is_from_client()
100 if (addr6->sin6_port != client_port) in is_from_client()
165 printf("on [%.*s]:%d\n", (int) sizeof(dst), dst, addr6.sin6_port); in do_test()
/third_party/libcoap/tests/
Dtest_session.c154 laddr.addr.sin6.sin6_port = htons(COAP_DEFAULT_PORT); in t_session6()
158 saddr.addr.sin6.sin6_port = htons(20000); in t_session6()
179 addr.addr.sin6.sin6_port = htons(COAP_DEFAULT_PORT); in t_session_tests_create()
/third_party/boost/boost/asio/ip/detail/impl/
Dendpoint.ipp57 data_.v6.sin6_port =
89 data_.v6.sin6_port =
120 data_.v6.sin6_port);
133 data_.v6.sin6_port
/third_party/boost/libs/asio/include/boost/asio/ip/detail/impl/
Dendpoint.ipp57 data_.v6.sin6_port =
89 data_.v6.sin6_port =
120 data_.v6.sin6_port);
133 data_.v6.sin6_port
/third_party/pulseaudio/src/pulsecore/
Dsocket-server.c381 sa.sin6_port = htons(port); in pa_socket_server_new_ipv6()
387 sa.sin6_port = 0; in pa_socket_server_new_ipv6()
534 pa_snprintf(c, l, "tcp6:%s:%u", fqdn, (unsigned) ntohs(sa.sin6_port)); in pa_socket_server_get_address()
542 pa_snprintf(c, l, "{%s}tcp6:localhost:%u", id, (unsigned) ntohs(sa.sin6_port)); in pa_socket_server_get_address()
552 pa_snprintf(c, l, "tcp6:[%s]:%u", ip, (unsigned) ntohs(sa.sin6_port)); in pa_socket_server_get_address()
Dohos_socket-server.c401 sa.sin6_port = htons(port); in pa_socket_server_new_ipv6()
407 sa.sin6_port = 0; in pa_socket_server_new_ipv6()
554 pa_snprintf(c, l, "tcp6:%s:%u", fqdn, (unsigned) ntohs(sa.sin6_port)); in pa_socket_server_get_address()
562 pa_snprintf(c, l, "{%s}tcp6:localhost:%u", id, (unsigned) ntohs(sa.sin6_port)); in pa_socket_server_get_address()
572 pa_snprintf(c, l, "tcp6:[%s]:%u", ip, (unsigned) ntohs(sa.sin6_port)); in pa_socket_server_get_address()
/third_party/ltp/lib/
Dsafe_net.c53 if (ntohs(sin6->sin6_port) != 0) { in tst_sock_addr()
55 ntohs(sin6->sin6_port)); in tst_sock_addr()
102 return ntohs(sin6->sin6_port); in tst_getsockport()
495 addr6->sin6_port = 0; in tst_get_unused_port()
531 return addr6->sin6_port; in tst_get_unused_port()
Dtst_net.c197 sa->sin6_port = htons(port); in tst_init_sockaddr_inet6()
205 sa->sin6_port = htons(port); in tst_init_sockaddr_inet6_bin()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/common/
Dctrl_iface_common.c45 if (in6_a->sin6_port != in6_b->sin6_port) in sockaddr_compare()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/common/
Dctrl_iface_common.c45 if (in6_a->sin6_port != in6_b->sin6_port) in sockaddr_compare()
/third_party/libcoap/include/coap3/
Daddress.h171 dst->addr.sin6.sin6_port = src->addr.sin6.sin6_port; in coap_address_copy()
/third_party/musl/src/network/
Dgetaddrinfo.c61 .sin6_family = AF_INET6, .sin6_port = 65535, in getaddrinfo()
133 out[k].sa.sin6.sin6_port = htons(ports[j].port); in getaddrinfo()
/third_party/node/deps/cares/src/lib/
Dares_getnameinfo.c96 port = addr6->sin6_port; in ares_getnameinfo()
207 service = lookup_service(niquery->addr.addr6.sin6_port, in nameinfo_callback()
257 service = lookup_service(niquery->addr.addr6.sin6_port, in nameinfo_callback()
Dares_ipv6.h28 unsigned short sin6_port; member
/third_party/pulseaudio/src/modules/rtp/
Dsdp.c175 ((struct sockaddr_in6*) &i->sa)->sin6_port = 0; in pa_sdp_parse()
240 ((struct sockaddr_in6*) &i->sa)->sin6_port = htons(port); in pa_sdp_parse()
/third_party/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/lib/
Dlibrpc-tirpc.c44 addr6->sin6_port = 0; in bound_socket()
/third_party/libwebsockets/include/libwebsockets/
Dlws-optee.h71 in_port_t sin6_port; /* Transport layer port # */ member

1234567