Home
last modified time | relevance | path

Searched refs:addr_str (Results 1 – 25 of 39) sorted by relevance

12

/external/grpc-grpc/src/core/lib/iomgr/
Dtcp_client_posix.cc60 char* addr_str; member
111 gpr_log(GPR_INFO, "CLIENT_CONNECT: %s: on_alarm: error=%s", ac->addr_str, in tc_on_alarm()
123 gpr_free(ac->addr_str); in tc_on_alarm()
130 grpc_fd* fd, const grpc_channel_args* channel_args, const char* addr_str) { in grpc_tcp_client_create_from_fd() argument
131 return grpc_tcp_create(fd, channel_args, addr_str); in grpc_tcp_client_create_from_fd()
148 gpr_log(GPR_INFO, "CLIENT_CONNECT: %s: on_writable: error=%s", ac->addr_str, in on_writable()
181 *ep = grpc_tcp_client_create_from_fd(fd, ac->channel_args, ac->addr_str); in on_writable()
223 const grpc_slice addr_str_slice = grpc_slice_from_copied_string(ac->addr_str); in on_writable()
245 gpr_free(ac->addr_str); in on_writable()
260 char* addr_str; in grpc_tcp_client_prepare_fd() local
[all …]
Dtcp_server_utils_posix_ifaddrs.cc115 char* addr_str = nullptr; in grpc_tcp_server_add_all_local_addrs() local
134 if (grpc_sockaddr_to_string(&addr_str, &addr, 0) < 0) { in grpc_tcp_server_add_all_local_addrs()
135 addr_str = gpr_strdup("<error>"); in grpc_tcp_server_add_all_local_addrs()
139 ifa_name, ifa_it->ifa_flags, addr_str); in grpc_tcp_server_add_all_local_addrs()
143 gpr_log(GPR_DEBUG, "Skipping duplicate addr %s on interface %s", addr_str, in grpc_tcp_server_add_all_local_addrs()
145 gpr_free(addr_str); in grpc_tcp_server_add_all_local_addrs()
152 if (gpr_asprintf(&err_str, "Failed to add listener: %s", addr_str) < 0) { in grpc_tcp_server_add_all_local_addrs()
157 gpr_free(addr_str); in grpc_tcp_server_add_all_local_addrs()
169 gpr_free(addr_str); in grpc_tcp_server_add_all_local_addrs()
Dudp_server.cc150 char* addr_str; in GrpcUdpListener() local
152 grpc_sockaddr_to_string(&addr_str, addr, 1); in GrpcUdpListener()
153 gpr_asprintf(&name, "udp-server-listener:%s", addr_str); in GrpcUdpListener()
154 gpr_free(addr_str); in GrpcUdpListener()
414 char* addr_str; in prepare_socket() local
415 grpc_sockaddr_to_string(&addr_str, addr, 0); in prepare_socket()
416 gpr_log(GPR_ERROR, "bind addr=%s: %s", addr_str, strerror(errno)); in prepare_socket()
417 gpr_free(addr_str); in prepare_socket()
579 char* addr_str; in grpc_udp_server_add_port() local
580 grpc_sockaddr_to_string(&addr_str, addr, 1); in grpc_udp_server_add_port()
[all …]
Dtcp_server_posix.cc193 char* addr_str; in on_read() local
222 addr_str = grpc_sockaddr_to_uri(&addr); in on_read()
223 gpr_asprintf(&name, "tcp-server-connection:%s", addr_str); in on_read()
226 gpr_log(GPR_INFO, "SERVER_CONNECT: incoming connection: %s", addr_str); in on_read()
247 grpc_tcp_create(fdobj, sp->server->channel_args, addr_str), in on_read()
251 gpr_free(addr_str); in on_read()
334 char* addr_str; in clone_port() local
353 grpc_sockaddr_to_string(&addr_str, &listener->addr, 1); in clone_port()
354 gpr_asprintf(&name, "tcp-server-listener:%s/clone-%d", addr_str, i); in clone_port()
374 gpr_free(addr_str); in clone_port()
Dtcp_server_utils_posix_common.cc86 char* addr_str; in add_socket_to_server() local
93 grpc_sockaddr_to_string(&addr_str, addr, 1); in add_socket_to_server()
94 gpr_asprintf(&name, "tcp-server-listener:%s", addr_str); in add_socket_to_server()
117 gpr_free(addr_str); in add_socket_to_server()
Dsocket_utils_common_posix.cc371 char* addr_str; in error_for_fd() local
372 grpc_sockaddr_to_string(&addr_str, addr, 0); in error_for_fd()
375 grpc_slice_from_copied_string(addr_str)); in error_for_fd()
376 gpr_free(addr_str); in error_for_fd()
/external/libnl/tests/
Dcheck-addr.c105 char *addr_str = "10.0.0.1/16"; in START_TEST() local
108 fail_if(nl_addr_parse(addr_str, AF_INET6, &addr4) == 0, in START_TEST()
111 fail_if(nl_addr_parse(addr_str, AF_UNSPEC, &addr4) != 0, in START_TEST()
112 "Should be able to parse \"%s\"", addr_str); in START_TEST()
133 fail_if(strcmp(nl_addr2str(addr4, buf, sizeof(buf)), addr_str), in START_TEST()
146 char *addr_str = "2001:1:2::3/64"; in START_TEST() local
149 fail_if(nl_addr_parse(addr_str, AF_INET, &addr6) == 0, in START_TEST()
152 fail_if(nl_addr_parse(addr_str, AF_UNSPEC, &addr6) != 0, in START_TEST()
153 "Should be able to parse \"%s\"", addr_str); in START_TEST()
174 fail_if(strcmp(nl_addr2str(addr6, buf, sizeof(buf)), addr_str), in START_TEST()
[all …]
/external/u-boot/cmd/
Dboot_android.c17 char *addr_arg_endp, *addr_str; in do_boot_android() local
31 addr_str = env_get("loadaddr"); in do_boot_android()
32 if (addr_str) in do_boot_android()
33 load_address = simple_strtoul(addr_str, NULL, 16); in do_boot_android()
Dload_android.c15 char *addr_arg_endp, *addr_str; in do_load_android() local
29 addr_str = env_get("loadaddr"); in do_load_android()
30 if (addr_str != NULL) in do_load_android()
31 load_address = simple_strtoul(addr_str, NULL, 16); in do_load_android()
Dzfs.c44 const char *addr_str; in do_zfs_load() local
56 addr_str = env_get("loadaddr"); in do_zfs_load()
57 if (addr_str != NULL) in do_zfs_load()
58 addr = simple_strtoul(addr_str, NULL, 16); in do_zfs_load()
Dreiser.c86 char *addr_str; in do_reiserload() local
90 addr_str = env_get("loadaddr"); in do_reiserload()
91 if (addr_str != NULL) { in do_reiserload()
92 addr = simple_strtoul (addr_str, NULL, 16); in do_reiserload()
/external/autotest/client/common_lib/cros/network/
Dnetblock.py31 addr_str, prefix_len_str = addr.split('/')
34 addr_str = addr
49 return Netblock(addr_str, prefix_len)
117 def __init__(self, addr_str, prefix_len): argument
124 self._octets = map(int, addr_str.split('.'))
/external/grpc-grpc/src/core/ext/filters/client_channel/lb_policy/grpclb/
Dgrpclb_channel_secure.cc50 char* addr_str; in CreateTargetAuthorityTable() local
52 &addr_str, &addresses->addresses[i].address, true) > 0); in CreateTargetAuthorityTable()
53 target_authority_entries[i].key = grpc_slice_from_copied_string(addr_str); in CreateTargetAuthorityTable()
56 gpr_free(addr_str); in CreateTargetAuthorityTable()
/external/mdnsresponder/mDNSPosix/
Dnss_mdns.c557 const char * addr_str,
633 char * addr_str
717 char addr_str [NI_MAXHOST + 1]; in _nss_mdns_gethostbyaddr_r() local
721 if (inet_ntop (af, addr, addr_str, NI_MAXHOST) == NULL) in _nss_mdns_gethostbyaddr_r()
746 addr_str in _nss_mdns_gethostbyaddr_r()
759 if (is_applicable_addr (&result, addr, af, addr_str)) in _nss_mdns_gethostbyaddr_r()
763 rv = mdns_lookup_addr (addr, len, af, addr_str, &result); in _nss_mdns_gethostbyaddr_r()
936 const char * addr_str, in mdns_lookup_addr() argument
947 addr_str in mdns_lookup_addr()
966 addr_str, // address string to query for in mdns_lookup_addr()
[all …]
/external/selinux/libsepol/src/
Dnode_record.c45 const char *addr_str, int proto, char *addr_bytes) in node_parse_addr() argument
54 if (inet_pton(AF_INET, addr_str, &in_addr) <= 0) { in node_parse_addr()
56 "%s: %s", addr_str, strerror(errno)); in node_parse_addr()
67 if (inet_pton(AF_INET6, addr_str, &in_addr) <= 0) { in node_parse_addr()
69 "%s: %s", addr_str, strerror(errno)); in node_parse_addr()
135 char *addr_bytes, int proto, char *addr_str) in node_expand_addr() argument
146 if (inet_ntop(AF_INET, &addr, addr_str, in node_expand_addr()
162 if (inet_ntop(AF_INET6, &addr, addr_str, in node_expand_addr()
/external/strace/tests/
Dquotactl.h153 const char *addr_str = NULL; in check_quota() local
178 addr_str = va_arg(ap, const char *); in check_quota()
217 printf(", %s", addr_str); in check_quota()
/external/strace/tests-m32/
Dquotactl.h153 const char *addr_str = NULL; in check_quota() local
178 addr_str = va_arg(ap, const char *); in check_quota()
217 printf(", %s", addr_str); in check_quota()
/external/strace/tests-mx32/
Dquotactl.h153 const char *addr_str = NULL; in check_quota() local
178 addr_str = va_arg(ap, const char *); in check_quota()
217 printf(", %s", addr_str); in check_quota()
/external/toybox/toys/pending/
Dtraceroute.c84 char addr_str[INET6_ADDRSTRLEN]; variable
419 memset(addr_str, '\0', INET6_ADDRSTRLEN); in do_trace()
421 addr_str, INET6_ADDRSTRLEN); in do_trace()
422 xprintf(" %s", addr_str); in do_trace()
430 memset(addr_str, '\0', INET6_ADDRSTRLEN); in do_trace()
432 &from)->sin6_addr, addr_str, INET6_ADDRSTRLEN); in do_trace()
434 xprintf(" %d bytes to %s ", rcv_len, addr_str); in do_trace()
633 addr_str, INET6_ADDRSTRLEN); in traceroute_main()
634 xprintf("traceroute6 to %s(%s)", toys.optargs[0], addr_str); in traceroute_main()
/external/iptables/iptables/
Dnft-ipv6.c259 char addr_str[INET6_ADDRSTRLEN]; in save_ipv6_addr() local
264 inet_ntop(AF_INET6, addr, addr_str, INET6_ADDRSTRLEN); in save_ipv6_addr()
265 printf("%s-%c %s ", invert ? "! " : "", letter, addr_str); in save_ipv6_addr()
393 char addr_str[INET6_ADDRSTRLEN]; in xlate_ipv6_addr() local
398 inet_ntop(AF_INET6, addr, addr_str, INET6_ADDRSTRLEN); in xlate_ipv6_addr()
399 xt_xlate_add(xl, "%s %s%s%s ", selector, invert ? "!= " : "", addr_str, in xlate_ipv6_addr()
/external/u-boot/cmd/mvebu/
Dbubt.c97 const char *addr_str; in get_load_addr() local
100 addr_str = env_get("loadaddr"); in get_load_addr()
101 if (addr_str) in get_load_addr()
102 addr = simple_strtoul(addr_str, NULL, 16); in get_load_addr()
/external/grpc-grpc/test/core/end2end/
Ddualstack_socket_test.cc64 char* addr_str = grpc_sockaddr_to_uri(&res->addrs[i]); in log_resolved_addrs() local
65 gpr_log(GPR_INFO, "%s: %s", label, addr_str); in log_resolved_addrs()
66 gpr_free(addr_str); in log_resolved_addrs()
/external/u-boot/fs/
Dfs.c524 const char *addr_str; in do_load() local
546 addr_str = env_get("loadaddr"); in do_load()
547 if (addr_str != NULL) in do_load()
548 addr = simple_strtoul(addr_str, NULL, 16); in do_load()
/external/iproute2/tipc/
Dlink.c613 char addr_str[16]; in link_mon_print_non_applied() local
619 sprintf(addr_str, "%u.%u.%u:", tipc_zone(members[i]), in link_mon_print_non_applied()
622 printf("%s%c", addr_str, state); in link_mon_print_non_applied()
631 char addr_str[16]; in link_mon_print_peer_state() local
633 sprintf(addr_str, "%u.%u.%u", tipc_zone(addr), tipc_cluster(addr), in link_mon_print_peer_state()
636 printf("%-*s", MAX_NODE_WIDTH, addr_str); in link_mon_print_peer_state()
/external/grpc-grpc/src/core/ext/filters/client_channel/
Dsubchannel.cc791 const char* addr_str = grpc_channel_arg_get_string(addr_arg); in grpc_subchannel_get_target() local
792 GPR_ASSERT(addr_str != nullptr); // Should have been set by LB policy. in grpc_subchannel_get_target()
793 return addr_str; in grpc_subchannel_get_target()
799 const char* addr_str = grpc_channel_arg_get_string(addr_arg); in grpc_get_subchannel_address_uri_arg() local
800 GPR_ASSERT(addr_str != nullptr); // Should have been set by LB policy. in grpc_get_subchannel_address_uri_arg()
801 return addr_str; in grpc_get_subchannel_address_uri_arg()

12