Home
last modified time | relevance | path

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

12

/external/rust/crates/grpcio-sys/grpc/src/core/lib/iomgr/
Dsockaddr_utils.cc44 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 …]
Dparse_address.cc49 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 …]
Dparse_address.h34 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);
Dunix_sockets_posix.cc65 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()
Dsocket_utils_linux.cc33 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()
Dunix_sockets_posix.h42 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);
Dsocket_utils_posix.cc34 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/
Dsockaddr_utils.cc40 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 …]
Dunix_sockets_posix.cc97 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 …]
Dunix_sockets_posix.h38 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);
Dsocket_utils_linux.cc33 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()
Dsocket_utils_posix.cc34 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/
Dudp_server_test.cc210 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 …]
Dtcp_client_posix_test.cc80 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 …]
Dtcp_server_uv_test.cc135 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 …]
Dtcp_client_uv_test.cc85 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 …]
Dtcp_server_posix_test.cc183 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/
Dparse_address.cc41 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 …]
Dparse_address.h31 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/
DCFStreamClientTests.mm79 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/
Daddress_sorting.c147 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/
Daddress_sorting.c147 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/
DArchitectureMips.cpp83 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/
Dlocal_security_connector.cc74 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/
Devaluate_args.cc92 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()

12