/external/rust/crates/grpcio-sys/grpc/src/core/lib/iomgr/ |
D | sockaddr_utils.cc | 44 int grpc_sockaddr_is_v4mapped(const grpc_resolved_address* resolved_addr, in grpc_sockaddr_is_v4mapped() argument 46 GPR_ASSERT(resolved_addr != resolved_addr4_out); in grpc_sockaddr_is_v4mapped() 48 reinterpret_cast<const grpc_sockaddr*>(resolved_addr->addr); in grpc_sockaddr_is_v4mapped() 74 int grpc_sockaddr_to_v4mapped(const grpc_resolved_address* resolved_addr, in grpc_sockaddr_to_v4mapped() argument 76 GPR_ASSERT(resolved_addr != resolved_addr6_out); in grpc_sockaddr_to_v4mapped() 78 reinterpret_cast<const grpc_sockaddr*>(resolved_addr->addr); in grpc_sockaddr_to_v4mapped() 95 int grpc_sockaddr_is_wildcard(const grpc_resolved_address* resolved_addr, in grpc_sockaddr_is_wildcard() argument 99 if (grpc_sockaddr_is_v4mapped(resolved_addr, &addr4_normalized)) { in grpc_sockaddr_is_wildcard() 100 resolved_addr = &addr4_normalized; in grpc_sockaddr_is_wildcard() 102 addr = reinterpret_cast<const grpc_sockaddr*>(resolved_addr->addr); in grpc_sockaddr_is_wildcard() [all …]
|
D | parse_address.cc | 49 grpc_resolved_address* resolved_addr) { in grpc_parse_unix() argument 56 grpc_core::UnixSockaddrPopulate(uri.path(), resolved_addr); in grpc_parse_unix() 66 grpc_resolved_address* resolved_addr) { in grpc_parse_unix_abstract() argument 73 grpc_core::UnixAbstractSockaddrPopulate(uri.path(), resolved_addr); in grpc_parse_unix_abstract() 85 grpc_resolved_address* resolved_addr) { in UnixSockaddrPopulate() argument 87 reinterpret_cast<struct sockaddr_un*>(resolved_addr->addr); in UnixSockaddrPopulate() 98 resolved_addr->len = static_cast<socklen_t>(sizeof(*un)); in UnixSockaddrPopulate() 103 grpc_resolved_address* resolved_addr) { in UnixAbstractSockaddrPopulate() argument 105 reinterpret_cast<struct sockaddr_un*>(resolved_addr->addr); in UnixAbstractSockaddrPopulate() 116 resolved_addr->len = in UnixAbstractSockaddrPopulate() [all …]
|
D | parse_address.h | 34 grpc_resolved_address* resolved_addr); 39 grpc_resolved_address* resolved_addr); 44 grpc_resolved_address* resolved_addr); 49 grpc_resolved_address* resolved_addr); 53 grpc_resolved_address* resolved_addr); 68 grpc_resolved_address* resolved_addr); 73 grpc_resolved_address* resolved_addr);
|
D | unix_sockets_posix.cc | 65 int grpc_is_unix_socket(const grpc_resolved_address* resolved_addr) { in grpc_is_unix_socket() argument 67 reinterpret_cast<const grpc_sockaddr*>(resolved_addr->addr); in grpc_is_unix_socket() 72 const grpc_resolved_address* resolved_addr) { in grpc_unlink_if_unix_domain_socket() argument 74 reinterpret_cast<const grpc_sockaddr*>(resolved_addr->addr); in grpc_unlink_if_unix_domain_socket() 79 const_cast<char*>(resolved_addr->addr)); in grpc_unlink_if_unix_domain_socket() 93 const grpc_resolved_address* resolved_addr) { in grpc_sockaddr_to_uri_unix_if_possible() argument 95 reinterpret_cast<const grpc_sockaddr*>(resolved_addr->addr); in grpc_sockaddr_to_uri_unix_if_possible() 105 resolved_addr->len - sizeof(unix_addr->sun_family) - 1)); in grpc_sockaddr_to_uri_unix_if_possible()
|
D | socket_utils_linux.cc | 33 int grpc_accept4(int sockfd, grpc_resolved_address* resolved_addr, int nonblock, in grpc_accept4() argument 38 return accept4(sockfd, reinterpret_cast<grpc_sockaddr*>(resolved_addr->addr), in grpc_accept4() 39 &resolved_addr->len, flags); in grpc_accept4()
|
D | unix_sockets_posix.h | 42 int grpc_is_unix_socket(const grpc_resolved_address* resolved_addr); 45 const grpc_resolved_address* resolved_addr); 48 const grpc_resolved_address* resolved_addr);
|
D | socket_utils_posix.cc | 34 int grpc_accept4(int sockfd, grpc_resolved_address* resolved_addr, int nonblock, in grpc_accept4() argument 37 fd = accept(sockfd, reinterpret_cast<grpc_sockaddr*>(resolved_addr->addr), in grpc_accept4() 38 &resolved_addr->len); in grpc_accept4()
|
/external/grpc-grpc/src/core/lib/iomgr/ |
D | sockaddr_utils.cc | 40 int grpc_sockaddr_is_v4mapped(const grpc_resolved_address* resolved_addr, in grpc_sockaddr_is_v4mapped() argument 42 GPR_ASSERT(resolved_addr != resolved_addr4_out); in grpc_sockaddr_is_v4mapped() 44 reinterpret_cast<const grpc_sockaddr*>(resolved_addr->addr); in grpc_sockaddr_is_v4mapped() 70 int grpc_sockaddr_to_v4mapped(const grpc_resolved_address* resolved_addr, in grpc_sockaddr_to_v4mapped() argument 72 GPR_ASSERT(resolved_addr != resolved_addr6_out); in grpc_sockaddr_to_v4mapped() 74 reinterpret_cast<const grpc_sockaddr*>(resolved_addr->addr); in grpc_sockaddr_to_v4mapped() 91 int grpc_sockaddr_is_wildcard(const grpc_resolved_address* resolved_addr, in grpc_sockaddr_is_wildcard() argument 95 if (grpc_sockaddr_is_v4mapped(resolved_addr, &addr4_normalized)) { in grpc_sockaddr_is_wildcard() 96 resolved_addr = &addr4_normalized; in grpc_sockaddr_is_wildcard() 98 addr = reinterpret_cast<const grpc_sockaddr*>(resolved_addr->addr); in grpc_sockaddr_is_wildcard() [all …]
|
D | unix_sockets_posix.cc | 97 int grpc_is_unix_socket(const grpc_resolved_address* resolved_addr) { in grpc_is_unix_socket() argument 99 reinterpret_cast<const grpc_sockaddr*>(resolved_addr->addr); in grpc_is_unix_socket() 103 int grpc_is_vsock(const grpc_resolved_address* resolved_addr) { in grpc_is_vsock() argument 106 reinterpret_cast<const grpc_sockaddr*>(resolved_addr->addr); in grpc_is_vsock() 114 const grpc_resolved_address* resolved_addr) { in grpc_unlink_if_unix_domain_socket() argument 116 reinterpret_cast<const grpc_sockaddr*>(resolved_addr->addr); in grpc_unlink_if_unix_domain_socket() 121 const_cast<char*>(resolved_addr->addr)); in grpc_unlink_if_unix_domain_socket() 130 const grpc_resolved_address* resolved_addr) { in grpc_sockaddr_to_uri_unix_if_possible() argument 132 reinterpret_cast<const grpc_sockaddr*>(resolved_addr->addr); in grpc_sockaddr_to_uri_unix_if_possible() 143 const grpc_resolved_address* resolved_addr) { in grpc_sockaddr_to_uri_vsock_if_possible() argument [all …]
|
D | unix_sockets_posix.h | 38 int grpc_is_unix_socket(const grpc_resolved_address* resolved_addr); 40 int grpc_is_vsock(const grpc_resolved_address* resolved_addr); 43 const grpc_resolved_address* resolved_addr); 46 const grpc_resolved_address* resolved_addr); 49 const grpc_resolved_address* resolved_addr);
|
D | socket_utils_linux.cc | 33 int grpc_accept4(int sockfd, grpc_resolved_address* resolved_addr, int nonblock, in grpc_accept4() argument 38 return accept4(sockfd, reinterpret_cast<grpc_sockaddr*>(resolved_addr->addr), in grpc_accept4() 39 &resolved_addr->len, flags); in grpc_accept4()
|
D | socket_utils_posix.cc | 34 int grpc_accept4(int sockfd, grpc_resolved_address* resolved_addr, int nonblock, in grpc_accept4() argument 37 fd = accept(sockfd, reinterpret_cast<grpc_sockaddr*>(resolved_addr->addr), in grpc_accept4() 38 &resolved_addr->len); in grpc_accept4()
|
/external/grpc-grpc/test/core/iomgr/ |
D | udp_server_test.cc | 210 grpc_resolved_address resolved_addr; in test_no_op_with_port() local 212 reinterpret_cast<struct sockaddr_in*>(resolved_addr.addr); in test_no_op_with_port() 216 memset(&resolved_addr, 0, sizeof(resolved_addr)); in test_no_op_with_port() 217 resolved_addr.len = static_cast<socklen_t>(sizeof(struct sockaddr_in)); in test_no_op_with_port() 219 GPR_ASSERT(grpc_udp_server_add_port(s, &resolved_addr, rcv_buf_size, in test_no_op_with_port() 234 grpc_resolved_address resolved_addr; in test_no_op_with_port_and_socket_factory() local 236 reinterpret_cast<struct sockaddr_in*>(resolved_addr.addr); in test_no_op_with_port_and_socket_factory() 248 memset(&resolved_addr, 0, sizeof(resolved_addr)); in test_no_op_with_port_and_socket_factory() 249 resolved_addr.len = static_cast<socklen_t>(sizeof(struct sockaddr_in)); in test_no_op_with_port_and_socket_factory() 251 GPR_ASSERT(grpc_udp_server_add_port(s, &resolved_addr, rcv_buf_size, in test_no_op_with_port_and_socket_factory() [all …]
|
D | tcp_client_posix_test.cc | 80 grpc_resolved_address resolved_addr; in test_succeeds() local 82 reinterpret_cast<struct sockaddr_in*>(resolved_addr.addr); in test_succeeds() 91 memset(&resolved_addr, 0, sizeof(resolved_addr)); in test_succeeds() 92 resolved_addr.len = static_cast<socklen_t>(sizeof(struct sockaddr_in)); in test_succeeds() 99 0 == bind(svr_fd, (struct sockaddr*)addr, (socklen_t)resolved_addr.len)); in test_succeeds() 108 (socklen_t*)&resolved_addr.len) == 0); in test_succeeds() 111 &resolved_addr, GRPC_MILLIS_INF_FUTURE); in test_succeeds() 115 resolved_addr.len = static_cast<socklen_t>(sizeof(addr)); in test_succeeds() 117 reinterpret_cast<socklen_t*>(&resolved_addr.len)); in test_succeeds() 140 grpc_resolved_address resolved_addr; in test_fails() local [all …]
|
D | tcp_server_uv_test.cc | 135 grpc_resolved_address resolved_addr; in test_no_op_with_port() local 136 struct sockaddr_in* addr = (struct sockaddr_in*)resolved_addr.addr; in test_no_op_with_port() 141 memset(&resolved_addr, 0, sizeof(resolved_addr)); in test_no_op_with_port() 142 resolved_addr.len = sizeof(struct sockaddr_in); in test_no_op_with_port() 145 GPR_ASSERT(grpc_tcp_server_add_port(s, &resolved_addr, &port) == in test_no_op_with_port() 154 grpc_resolved_address resolved_addr; in test_no_op_with_port_and_start() local 155 struct sockaddr_in* addr = (struct sockaddr_in*)resolved_addr.addr; in test_no_op_with_port_and_start() 161 memset(&resolved_addr, 0, sizeof(resolved_addr)); in test_no_op_with_port_and_start() 162 resolved_addr.len = sizeof(struct sockaddr_in); in test_no_op_with_port_and_start() 164 GPR_ASSERT(grpc_tcp_server_add_port(s, &resolved_addr, &port) == in test_no_op_with_port_and_start() [all …]
|
D | tcp_client_uv_test.cc | 85 grpc_resolved_address resolved_addr; in test_succeeds() local 86 struct sockaddr_in* addr = (struct sockaddr_in*)resolved_addr.addr; in test_succeeds() 94 memset(&resolved_addr, 0, sizeof(resolved_addr)); in test_succeeds() 95 resolved_addr.len = sizeof(struct sockaddr_in); in test_succeeds() 109 (int*)&resolved_addr.len) == 0); in test_succeeds() 111 grpc_tcp_client_connect(&done, &g_connecting, NULL, NULL, &resolved_addr, in test_succeeds() 135 grpc_resolved_address resolved_addr; in test_fails() local 136 struct sockaddr_in* addr = (struct sockaddr_in*)resolved_addr.addr; in test_fails() 143 memset(&resolved_addr, 0, sizeof(resolved_addr)); in test_fails() 144 resolved_addr.len = sizeof(struct sockaddr_in); in test_fails() [all …]
|
D | tcp_server_posix_test.cc | 183 grpc_resolved_address resolved_addr; in test_no_op_with_port() local 185 reinterpret_cast<struct sockaddr_in*>(resolved_addr.addr); in test_no_op_with_port() 190 memset(&resolved_addr, 0, sizeof(resolved_addr)); in test_no_op_with_port() 191 resolved_addr.len = static_cast<socklen_t>(sizeof(struct sockaddr_in)); in test_no_op_with_port() 194 GPR_ASSERT(grpc_tcp_server_add_port(s, &resolved_addr, &port) == in test_no_op_with_port() 203 grpc_resolved_address resolved_addr; in test_no_op_with_port_and_start() local 205 reinterpret_cast<struct sockaddr_in*>(resolved_addr.addr); in test_no_op_with_port_and_start() 211 memset(&resolved_addr, 0, sizeof(resolved_addr)); in test_no_op_with_port_and_start() 212 resolved_addr.len = static_cast<socklen_t>(sizeof(struct sockaddr_in)); in test_no_op_with_port_and_start() 214 GPR_ASSERT(grpc_tcp_server_add_port(s, &resolved_addr, &port) == in test_no_op_with_port_and_start() [all …]
|
/external/grpc-grpc/src/core/ext/filters/client_channel/ |
D | parse_address.cc | 41 grpc_resolved_address* resolved_addr) { in grpc_parse_unix() argument 47 reinterpret_cast<struct sockaddr_un*>(resolved_addr->addr); in grpc_parse_unix() 53 resolved_addr->len = static_cast<socklen_t>(sizeof(*un)); in grpc_parse_unix() 60 grpc_resolved_address* resolved_addr) { in grpc_parse_unix() argument 69 grpc_resolved_address* resolved_addr) { in grpc_parse_vsock() argument 70 memset(resolved_addr, 0, sizeof(*resolved_addr)); in grpc_parse_vsock() 72 reinterpret_cast<struct sockaddr_vm *>(resolved_addr->addr); in grpc_parse_vsock() 79 resolved_addr->len = static_cast<socklen_t>(sizeof(*vm)); in grpc_parse_vsock() 86 grpc_resolved_address* resolved_addr) { in grpc_parse_vsock() argument 127 grpc_resolved_address* resolved_addr) { in grpc_parse_ipv4() argument [all …]
|
D | parse_address.h | 31 bool grpc_parse_unix(const grpc_uri* uri, grpc_resolved_address* resolved_addr); 36 grpc_resolved_address* resolved_addr); 40 bool grpc_parse_ipv4(const grpc_uri* uri, grpc_resolved_address* resolved_addr); 44 bool grpc_parse_ipv6(const grpc_uri* uri, grpc_resolved_address* resolved_addr); 47 bool grpc_parse_uri(const grpc_uri* uri, grpc_resolved_address* resolved_addr);
|
/external/grpc-grpc/test/core/iomgr/ios/CFStreamTests/ |
D | CFStreamClientTests.mm | 79 grpc_resolved_address resolved_addr; 80 struct sockaddr_in* addr = reinterpret_cast<struct sockaddr_in*>(resolved_addr.addr); 89 memset(&resolved_addr, 0, sizeof(resolved_addr)); 90 resolved_addr.len = sizeof(struct sockaddr_in); 96 GPR_ASSERT(0 == bind(svr_fd, (struct sockaddr*)addr, (socklen_t)resolved_addr.len)); 104 GPR_ASSERT(getsockname(svr_fd, (struct sockaddr*)addr, (socklen_t*)&resolved_addr.len) == 0); 106 grpc_tcp_client_connect(&done, &g_connecting, nullptr, nullptr, &resolved_addr, 111 resolved_addr.len = sizeof(addr); 113 reinterpret_cast<socklen_t*>(&resolved_addr.len)); 136 grpc_resolved_address resolved_addr; [all …]
|
/external/grpc-grpc/third_party/address_sorting/ |
D | address_sorting.c | 147 static int get_label_value(const address_sorting_address* resolved_addr) { in get_label_value() argument 148 if (address_sorting_abstract_get_family(resolved_addr) == in get_label_value() 151 } else if (address_sorting_abstract_get_family(resolved_addr) != in get_label_value() 155 struct sockaddr_in6* ipv6_addr = (struct sockaddr_in6*)&resolved_addr->addr; in get_label_value() 176 static int get_precedence_value(const address_sorting_address* resolved_addr) { in get_precedence_value() argument 177 if (address_sorting_abstract_get_family(resolved_addr) == in get_precedence_value() 180 } else if (address_sorting_abstract_get_family(resolved_addr) != in get_precedence_value() 184 struct sockaddr_in6* ipv6_addr = (struct sockaddr_in6*)&resolved_addr->addr; in get_precedence_value() 203 static int sockaddr_get_scope(const address_sorting_address* resolved_addr) { in sockaddr_get_scope() argument 204 if (address_sorting_abstract_get_family(resolved_addr) == in sockaddr_get_scope() [all …]
|
/external/rust/crates/grpcio-sys/grpc/third_party/address_sorting/ |
D | address_sorting.c | 147 static int get_label_value(const address_sorting_address* resolved_addr) { in get_label_value() argument 148 if (address_sorting_abstract_get_family(resolved_addr) == in get_label_value() 151 } else if (address_sorting_abstract_get_family(resolved_addr) != in get_label_value() 155 struct sockaddr_in6* ipv6_addr = (struct sockaddr_in6*)&resolved_addr->addr; in get_label_value() 176 static int get_precedence_value(const address_sorting_address* resolved_addr) { in get_precedence_value() argument 177 if (address_sorting_abstract_get_family(resolved_addr) == in get_precedence_value() 180 } else if (address_sorting_abstract_get_family(resolved_addr) != in get_precedence_value() 184 struct sockaddr_in6* ipv6_addr = (struct sockaddr_in6*)&resolved_addr->addr; in get_precedence_value() 203 static int sockaddr_get_scope(const address_sorting_address* resolved_addr) { in sockaddr_get_scope() argument 204 if (address_sorting_abstract_get_family(resolved_addr) == in sockaddr_get_scope() [all …]
|
/external/llvm-project/lldb/source/Plugins/Architecture/Mips/ |
D | ArchitectureMips.cpp | 83 Address resolved_addr; in GetBreakableLoadAddress() local 89 target.ResolveFileAddress(addr, resolved_addr); in GetBreakableLoadAddress() 91 target.ResolveLoadAddress(addr, resolved_addr); in GetBreakableLoadAddress() 97 ModuleSP temp_addr_module_sp(resolved_addr.GetModule()); in GetBreakableLoadAddress() 102 temp_addr_module_sp->ResolveSymbolContextForAddress(resolved_addr, in GetBreakableLoadAddress() 139 Target &target, const Address &resolved_addr, addr_t symbol_offset) const { in GetInstructionAtAddress() argument 166 Address addr = resolved_addr; in GetInstructionAtAddress()
|
/external/rust/crates/grpcio-sys/grpc/src/core/lib/security/security_connector/local/ |
D | local_security_connector.cc | 74 grpc_resolved_address resolved_addr; in local_check_peer() local 75 memset(&resolved_addr, 0, sizeof(resolved_addr)); in local_check_peer() 76 resolved_addr.len = GRPC_MAX_SOCKADDR_SIZE; in local_check_peer() 78 if (getsockname(fd, reinterpret_cast<grpc_sockaddr*>(resolved_addr.addr), in local_check_peer() 79 &resolved_addr.len) == 0) { in local_check_peer() 82 grpc_sockaddr_is_v4mapped(&resolved_addr, &addr_normalized) in local_check_peer() 84 : &resolved_addr; in local_check_peer()
|
/external/rust/crates/grpcio-sys/grpc/src/core/lib/security/authorization/ |
D | evaluate_args.cc | 92 grpc_resolved_address resolved_addr; in GetLocalPort() local 93 if (!uri.ok() || !grpc_parse_uri(*uri, &resolved_addr)) { in GetLocalPort() 96 return grpc_sockaddr_get_port(&resolved_addr); in GetLocalPort() 115 grpc_resolved_address resolved_addr; in GetPeerPort() local 116 if (!uri.ok() || !grpc_parse_uri(*uri, &resolved_addr)) { in GetPeerPort() 119 return grpc_sockaddr_get_port(&resolved_addr); in GetPeerPort()
|