/external/libnl/tests/ |
D | check-addr.c | 107 char *addr_str = "10.0.0.1/16"; in START_TEST() local 110 fail_if(nl_addr_parse(addr_str, AF_INET6, &addr4) == 0, in START_TEST() 113 fail_if(nl_addr_parse(addr_str, AF_UNSPEC, &addr4) != 0, in START_TEST() 114 "Should be able to parse \"%s\"", addr_str); in START_TEST() 135 fail_if(strcmp(nl_addr2str(addr4, buf, sizeof(buf)), addr_str), in START_TEST() 148 char *addr_str = "2001:1:2::3/64"; in START_TEST() local 151 fail_if(nl_addr_parse(addr_str, AF_INET, &addr6) == 0, in START_TEST() 154 fail_if(nl_addr_parse(addr_str, AF_UNSPEC, &addr6) != 0, in START_TEST() 155 "Should be able to parse \"%s\"", addr_str); in START_TEST() 176 fail_if(strcmp(nl_addr2str(addr6, buf, sizeof(buf)), addr_str), in START_TEST() [all …]
|
/external/grpc-grpc/src/core/lib/iomgr/ |
D | tcp_client_posix.cc | 60 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 …]
|
D | tcp_server_utils_posix_ifaddrs.cc | 115 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()
|
D | udp_server.cc | 150 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 …]
|
D | tcp_server_posix.cc | 193 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()
|
D | tcp_server_utils_posix_common.cc | 86 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()
|
D | socket_utils_common_posix.cc | 371 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()
|
D | tcp_client_posix.h | 36 grpc_fd* fd, const grpc_channel_args* channel_args, const char* addr_str);
|
/external/linux-kselftest/tools/testing/selftests/net/ |
D | reuseport_addr_any.c | 31 const char *addr_str) in build_rcv_fd() argument 43 if (!addr_str) in build_rcv_fd() 45 else if (!inet_pton(family, addr_str, &addr4.sin_addr.s_addr)) in build_rcv_fd() 46 error(1, errno, "inet_pton failed: %s", addr_str); in build_rcv_fd() 53 if (!addr_str) in build_rcv_fd() 55 else if (!inet_pton(family, addr_str, &addr6.sin6_addr)) in build_rcv_fd() 56 error(1, errno, "inet_pton failed: %s", addr_str); in build_rcv_fd() 218 const char *addr_str) in run_one_test() argument 231 build_rcv_fd(fam_rcv, proto, rcv_fds + 4, 1, addr_str); in run_one_test()
|
/external/autotest/client/common_lib/cros/network/ |
D | netblock.py | 38 addr_str, prefix_len_str = addr.split('/') 41 addr_str = addr 56 return Netblock(addr_str, prefix_len) 124 def __init__(self, addr_str, prefix_len): argument 131 self._octets = list(map(int, addr_str.split('.')))
|
/external/rust/crates/grpcio-sys/grpc/src/core/lib/iomgr/ |
D | tcp_client_posix.cc | 61 std::string addr_str; member 108 ac->addr_str.c_str(), str); in tc_on_alarm() 125 grpc_fd* fd, const grpc_channel_args* channel_args, const char* addr_str) { in grpc_tcp_client_create_from_fd() argument 126 return grpc_tcp_create(fd, channel_args, addr_str); in grpc_tcp_client_create_from_fd() 144 ac->addr_str.c_str(), str); in on_writable() 177 ac->addr_str.c_str()); in on_writable() 219 const grpc_slice addr_str_slice = grpc_slice_from_cpp_string(ac->addr_str); in on_writable() 312 ac->addr_str = grpc_sockaddr_to_uri(addr); in grpc_tcp_client_create_from_prepared_fd() 321 ac->addr_str.c_str(), fdobj); in grpc_tcp_client_create_from_prepared_fd()
|
D | tcp_server_posix.cc | 241 std::string addr_str = grpc_sockaddr_to_uri(&addr); in on_read() local 244 addr_str.c_str()); in on_read() 247 std::string name = absl::StrCat("tcp-server-connection:", addr_str); in on_read() 267 grpc_tcp_create(fdobj, sp->server->channel_args, addr_str.c_str()), in on_read() 351 std::string addr_str; in clone_port() local 369 addr_str = grpc_sockaddr_to_string(&listener->addr, true); in clone_port() 382 absl::StrFormat("tcp-server-listener:%s/clone-%d", addr_str.c_str(), i) in clone_port() 588 std::string addr_str = grpc_sockaddr_to_uri(&addr); in Handle() local 591 addr_str.c_str()); in Handle() 593 std::string name = absl::StrCat("tcp-server-connection:", addr_str); in Handle() [all …]
|
D | tcp_server_utils_posix_ifaddrs.cc | 136 std::string addr_str = grpc_sockaddr_to_string(&addr, false); in grpc_tcp_server_add_all_local_addrs() local 139 ifa_name, ifa_it->ifa_flags, addr_str.c_str()); in grpc_tcp_server_add_all_local_addrs() 144 addr_str.c_str(), ifa_name); in grpc_tcp_server_add_all_local_addrs() 150 absl::StrCat("Failed to add listener: ", addr_str).c_str()); in grpc_tcp_server_add_all_local_addrs()
|
D | udp_server.cc | 155 std::string addr_str = grpc_sockaddr_to_string(addr, true); in GrpcUdpListener() local 156 std::string name = absl::StrCat("udp-server-listener:", addr_str); in GrpcUdpListener() 415 std::string addr_str = grpc_sockaddr_to_string(addr, false); in prepare_socket() local 416 gpr_log(GPR_ERROR, "bind addr=%s: %s", addr_str.c_str(), strerror(errno)); in prepare_socket() 582 std::string addr_str = grpc_sockaddr_to_string(addr, true); in grpc_udp_server_add_port() local 583 gpr_log(GPR_DEBUG, "add address: %s to server", addr_str.c_str()); in grpc_udp_server_add_port()
|
D | tcp_client_posix.h | 36 grpc_fd* fd, const grpc_channel_args* channel_args, const char* addr_str);
|
D | tcp_server_utils_posix_common.cc | 94 std::string addr_str = grpc_sockaddr_to_string(addr, true); in add_socket_to_server() local 95 std::string name = absl::StrCat("tcp-server-listener:", addr_str); in add_socket_to_server()
|
/external/grpc-grpc/src/core/ext/filters/client_channel/lb_policy/grpclb/ |
D | grpclb_channel_secure.cc | 50 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/strace/tests-mx32/ |
D | quotactl.h | 153 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/ |
D | quotactl.h | 153 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/ |
D | quotactl.h | 153 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/mdnsresponder/mDNSPosix/ |
D | nss_mdns.c | 557 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/ |
D | node_record.c | 45 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/iptables/iptables/ |
D | nft-ipv6.c | 231 char addr_str[INET6_ADDRSTRLEN]; in save_ipv6_addr() local 239 inet_ntop(AF_INET6, addr, addr_str, sizeof(addr_str))); in save_ipv6_addr() 242 printf("/%s ", inet_ntop(AF_INET6, mask, addr_str, sizeof(addr_str))); in save_ipv6_addr() 340 char addr_str[INET6_ADDRSTRLEN]; in xlate_ipv6_addr() local 345 inet_ntop(AF_INET6, addr, addr_str, INET6_ADDRSTRLEN); in xlate_ipv6_addr() 346 xt_xlate_add(xl, "%s %s%s%s ", selector, invert ? "!= " : "", addr_str, in xlate_ipv6_addr()
|
/external/toybox/toys/pending/ |
D | traceroute.c | 84 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() 626 addr_str, INET6_ADDRSTRLEN); in traceroute_main() 627 xprintf("traceroute6 to %s(%s)", toys.optargs[0], addr_str); in traceroute_main()
|
/external/grpc-grpc/test/core/end2end/ |
D | dualstack_socket_test.cc | 64 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()
|