/third_party/grpc/src/core/lib/iomgr/ |
D | sockaddr_utils.cc | 64 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/ |
D | address.c | 37 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()
|
D | coap_io_riot.c | 118 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/ |
D | tftp.c | 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() 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/ |
D | test_basic.c | 110 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()
|
D | test_inaddr_any.c | 102 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/ |
D | ctrl_iface_udp.c | 101 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/ |
D | ctrl_iface_udp.c | 101 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/ |
D | test-udp-ipv6.c | 99 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/ |
D | test_session.c | 154 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/ |
D | endpoint.ipp | 57 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/ |
D | endpoint.ipp | 57 data_.v6.sin6_port = 89 data_.v6.sin6_port = 120 data_.v6.sin6_port); 133 data_.v6.sin6_port
|
/third_party/pulseaudio/src/pulsecore/ |
D | socket-server.c | 381 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()
|
D | ohos_socket-server.c | 401 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/ |
D | safe_net.c | 53 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()
|
D | tst_net.c | 197 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/ |
D | ctrl_iface_common.c | 45 if (in6_a->sin6_port != in6_b->sin6_port) in sockaddr_compare()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/common/ |
D | ctrl_iface_common.c | 45 if (in6_a->sin6_port != in6_b->sin6_port) in sockaddr_compare()
|
/third_party/libcoap/include/coap3/ |
D | address.h | 171 dst->addr.sin6.sin6_port = src->addr.sin6.sin6_port; in coap_address_copy()
|
/third_party/musl/src/network/ |
D | getaddrinfo.c | 61 .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/ |
D | ares_getnameinfo.c | 96 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()
|
D | ares_ipv6.h | 28 unsigned short sin6_port; member
|
/third_party/pulseaudio/src/modules/rtp/ |
D | sdp.c | 175 ((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/ |
D | librpc-tirpc.c | 44 addr6->sin6_port = 0; in bound_socket()
|
/third_party/libwebsockets/include/libwebsockets/ |
D | lws-optee.h | 71 in_port_t sin6_port; /* Transport layer port # */ member
|