Home
last modified time | relevance | path

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

12

/third_party/libnl/tests/
Dcheck-addr.c107 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 …]
/third_party/grpc/src/core/lib/iomgr/
Dtcp_client_posix.cc61 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()
Dtcp_server_posix.cc241 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 …]
Dtcp_server_utils_posix_ifaddrs.cc136 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()
Dudp_server.cc155 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()
Dtcp_client_posix.h36 grpc_fd* fd, const grpc_channel_args* channel_args, const char* addr_str);
Dtcp_server_utils_posix_common.cc94 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()
Dsocket_utils_common_posix.cc442 std::string addr_str = grpc_sockaddr_to_string(addr, false); in error_for_fd() local
445 grpc_slice_from_copied_string(addr_str.c_str())); in error_for_fd()
/third_party/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: %m", addr_str); in node_parse_addr()
67 if (inet_pton(AF_INET6, addr_str, &in_addr) <= 0) { in node_parse_addr()
69 "%s: %m", addr_str); 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()
161 if (inet_ntop(AF_INET6, &addr, addr_str, in node_expand_addr()
/third_party/iptables/iptables/
Dnft-ipv6.c231 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()
/third_party/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()
627 addr_str, INET6_ADDRSTRLEN); in traceroute_main()
628 xprintf("traceroute6 to %s(%s)", toys.optargs[0], addr_str); in traceroute_main()
/third_party/boost/libs/asio/include/boost/asio/ip/impl/
Daddress_v4.ipp88 char addr_str[boost::asio::detail::max_addr_v4_str_len];
91 BOOST_ASIO_OS_DEF(AF_INET), &addr_, addr_str,
101 char addr_str[boost::asio::detail::max_addr_v4_str_len];
104 BOOST_ASIO_OS_DEF(AF_INET), &addr_, addr_str,
Daddress_v6.ipp105 char addr_str[boost::asio::detail::max_addr_v6_str_len];
108 BOOST_ASIO_OS_DEF(AF_INET6), &addr_, addr_str,
118 char addr_str[boost::asio::detail::max_addr_v6_str_len];
121 BOOST_ASIO_OS_DEF(AF_INET6), &addr_, addr_str,
/third_party/boost/boost/asio/ip/impl/
Daddress_v4.ipp88 char addr_str[boost::asio::detail::max_addr_v4_str_len];
91 BOOST_ASIO_OS_DEF(AF_INET), &addr_, addr_str,
101 char addr_str[boost::asio::detail::max_addr_v4_str_len];
104 BOOST_ASIO_OS_DEF(AF_INET), &addr_, addr_str,
Daddress_v6.ipp105 char addr_str[boost::asio::detail::max_addr_v6_str_len];
108 BOOST_ASIO_OS_DEF(AF_INET6), &addr_, addr_str,
118 char addr_str[boost::asio::detail::max_addr_v6_str_len];
121 BOOST_ASIO_OS_DEF(AF_INET6), &addr_, addr_str,
/third_party/libcoap/src/
Dcoap_io_riot.c133 unsigned char addr_str[INET6_ADDRSTRLEN + 8]; in coap_network_read() local
135 if (coap_print_addr(&packet->addr_info.remote, addr_str, INET6_ADDRSTRLEN + 8)) { in coap_network_read()
136 coap_log(LOG_DEBUG, "received %zd bytes from %s\n", len, addr_str); in coap_network_read()
Dnet.c1164 char addr_str[INET6_ADDRSTRLEN + 8 + 1]; in coap_send_internal() local
1168 addr_str[sizeof(addr_str)-1] = '\000'; in coap_send_internal()
1169 if (coap_print_addr(&session->addr_info.local, (uint8_t*)addr_str, in coap_send_internal()
1170 sizeof(addr_str) - 1)) { in coap_send_internal()
1174 if (addr_str[0] == '[') { in coap_send_internal()
1175 cp = strchr(addr_str, ']'); in coap_send_internal()
1177 if (memcmp(&addr_str[1], "::ffff:", 7) == 0) { in coap_send_internal()
1179 cp = &addr_str[8]; in coap_send_internal()
1182 cp = &addr_str[1]; in coap_send_internal()
1186 cp = strchr(addr_str, ':'); in coap_send_internal()
[all …]
Dcoap_io.c1048 unsigned char addr_str[INET6_ADDRSTRLEN + 8]; local
1050 if (coap_print_addr(&packet->addr_info.remote, addr_str,
1052 coap_log(LOG_DEBUG, "received %zd bytes from %s\n", len, addr_str);
1068 unsigned char addr_str[INET6_ADDRSTRLEN + 8]; local
1070 if (coap_print_addr(&packet->src, addr_str, INET6_ADDRSTRLEN + 8)) {
1071 coap_log(LOG_DEBUG, "received %zd bytes from %s\n", len, addr_str);
/third_party/grpc/src/core/lib/channel/
Dchannelz.cc346 const char* addr_str) { in PopulateSocketAddressJson() argument
347 if (addr_str == nullptr) return; in PopulateSocketAddressJson()
349 absl::StatusOr<URI> uri = URI::Parse(addr_str); in PopulateSocketAddressJson()
371 {"name", addr_str}, in PopulateSocketAddressJson()
/third_party/libcoap/examples/
Detsi_iot_01.c579 char addr_str[NI_MAXHOST] = "::"; in main() local
588 strncpy(addr_str, optarg, NI_MAXHOST-1); in main()
589 addr_str[NI_MAXHOST - 1] = '\0'; in main()
606 ctx = get_context(addr_str, port_str); in main()
Dcoap-rd.c779 char addr_str[NI_MAXHOST] = "::"; in main() local
792 strncpy(addr_str, optarg, NI_MAXHOST-1); in main()
793 addr_str[NI_MAXHOST - 1] = '\0'; in main()
845 ctx = get_context(addr_str, port_str); in main()
/third_party/python/Lib/
Dipaddress.py1305 addr_str = str(address)
1306 if '/' in addr_str:
1308 self._ip = self._ip_int_from_string(addr_str)
1914 addr_str = str(address)
1915 if '/' in addr_str:
1917 addr_str, self._scope_id = self._split_scope_id(addr_str)
1919 self._ip = self._ip_int_from_string(addr_str)
/third_party/pulseaudio/src/modules/rtp/
Drtp-gstreamer.c83 gchar *addr_str; in init_send_pipeline() local
109 addr_str = g_inet_address_to_string(iaddr); in init_send_pipeline()
114 g_object_set(sink, "socket", socket, "host", addr_str, "port", port, in init_send_pipeline()
121 g_free(addr_str); in init_send_pipeline()
/third_party/gstreamer/gstplugins_bad/ext/srt/
Dgstsrtobject.c845 const char *addr_str; in gst_srt_object_set_uri() local
878 addr_str = gst_uri_get_host (srtobject->uri); in gst_srt_object_set_uri()
879 if (addr_str) in gst_srt_object_set_uri()
1321 const gchar *addr_str; in gst_srt_object_open_internal() local
1336 addr_str = gst_uri_get_host (srtobject->uri); in gst_srt_object_open_internal()
1337 if (addr_str == NULL) { in gst_srt_object_open_internal()
1339 addr_str = GST_SRT_DEFAULT_LOCALADDRESS; in gst_srt_object_open_internal()
1342 " setting listener mode", addr_str); in gst_srt_object_open_internal()
1354 gst_srt_object_resolve (srtobject, addr_str, port, cancellable, error); in gst_srt_object_open_internal()
/third_party/grpc/src/core/ext/filters/client_channel/
Dsubchannel.cc815 const char* addr_str = grpc_channel_arg_get_string(addr_arg); in GetTargetAddress() local
816 GPR_ASSERT(addr_str != nullptr); // Should have been set by LB policy. in GetTargetAddress()
817 return addr_str; in GetTargetAddress()
905 const char* addr_str = grpc_channel_arg_get_string(addr_arg); in GetUriFromSubchannelAddressArg() local
906 GPR_ASSERT(addr_str != nullptr); // Should have been set by LB policy. in GetUriFromSubchannelAddressArg()
907 return addr_str; in GetUriFromSubchannelAddressArg()

12