Home
last modified time | relevance | path

Searched refs:server_name (Results 1 – 17 of 17) sorted by relevance

/systemd-251/src/libsystemd/sd-bus/
Dtest-bus-benchmark.c64 static void transaction(sd_bus *b, size_t sz, const char *server_name) { in transaction() argument
68 …assert_se(sd_bus_message_new_method_call(b, &m, server_name, "/", "benchmark.server", "Work") >= 0… in transaction()
76 static void client_bisect(const char *address, const char *server_name) { in client_bisect() argument
91 r = sd_bus_call_method(b, server_name, "/", "benchmark.server", "Ping", NULL, NULL, NULL); in client_bisect()
117 transaction(b, csize, server_name); in client_bisect()
127 transaction(b, csize, server_name); in client_bisect()
143 …assert_se(sd_bus_message_new_method_call(b, &x, server_name, "/", "benchmark.server", "Exit") >= 0… in client_bisect()
150 static void client_chart(Type type, const char *address, const char *server_name, int fd) { in client_chart() argument
173 r = sd_bus_call_method(b, server_name, "/", "benchmark.server", "Ping", NULL, NULL, NULL); in client_chart()
193 transaction(b, csize, server_name); in client_chart()
[all …]
/systemd-251/src/shared/
Dbus-message-util.c82 const char *server_name = NULL; in bus_message_read_dns_one() local
115 r = sd_bus_message_read(message, "s", &server_name); in bus_message_read_dns_one()
127 *ret_server_name = server_name; in bus_message_read_dns_one()
152 const char *server_name; in bus_message_read_dns_servers() local
157 … r = bus_message_read_dns_one(message, error, extended, &family, &a, &port, &server_name); in bus_message_read_dns_servers()
168 r = in_addr_full_new(family, &a, port, 0, server_name, dns + n); in bus_message_read_dns_servers()
Dsocket-netlink.c387 free(a->server_name); in in_addr_full_free()
397 const char *server_name, in in_addr_full_new() argument
405 if (!isempty(server_name)) { in in_addr_full_new()
406 name = strdup(server_name); in in_addr_full_new()
420 .server_name = TAKE_PTR(name), in in_addr_full_new()
428 _cleanup_free_ char *server_name = NULL; in in_addr_full_new_from_string() local
435 … r = in_addr_port_ifindex_name_from_string_auto(s, &family, &a, &port, &ifindex, &server_name); in in_addr_full_new_from_string()
439 return in_addr_full_new(family, &a, port, ifindex, server_name, ret); in in_addr_full_new_from_string()
451 a->server_name, in in_addr_full_to_string()
Dsocket-netlink.h24 …ring_auto(const char *s, int *family, union in_addr_union *ret, int *ifindex, char **server_name) { in in_addr_ifindex_name_from_string_auto() argument
25 … return in_addr_port_ifindex_name_from_string_auto(s, family, ret, NULL, ifindex, server_name); in in_addr_ifindex_name_from_string_auto()
36 char *server_name; member
42 … const union in_addr_union *a, uint16_t port, int ifindex, const char *server_name, struct in_addr…
/systemd-251/src/test/
Dtest-socket-netlink.c282 _cleanup_free_ char *server_name = NULL; in test_in_addr_ifindex_name_from_string_auto_one() local
284 … assert_se(in_addr_ifindex_name_from_string_auto(a, &family, &ua, &ifindex, &server_name) >= 0); in test_in_addr_ifindex_name_from_string_auto_one()
285 assert_se(streq_ptr(server_name, expected)); in test_in_addr_ifindex_name_from_string_auto_one()
296 … const char *server_name, const char *str_repr) { in test_in_addr_port_ifindex_name_from_string_auto_one() argument
310 assert_se(streq_ptr(server_name, name)); in test_in_addr_port_ifindex_name_from_string_auto_one()
322 assert_se(streq_ptr(server_name, name)); in test_in_addr_port_ifindex_name_from_string_auto_one()
334 assert_se(streq_ptr(server_name, name)); in test_in_addr_port_ifindex_name_from_string_auto_one()
339 if (server_name) in test_in_addr_port_ifindex_name_from_string_auto_one()
/systemd-251/src/basic/
Din-addr-util.c488 …y, const union in_addr_union *u, uint16_t port, int ifindex, const char *server_name, char **ret) { in in_addr_port_ifindex_name_to_string() argument
512 if (port == 0 && ifindex == 0 && isempty(server_name)) { in in_addr_port_ifindex_name_to_string()
517 const char *separator = isempty(server_name) ? "" : "#"; in in_addr_port_ifindex_name_to_string()
518 server_name = strempty(server_name); in in_addr_port_ifindex_name_to_string()
523 … r = asprintf(&x, "[%s]:%"PRIu16"%%%i%s%s", ip_str, port, ifindex, separator, server_name); in in_addr_port_ifindex_name_to_string()
525 … r = asprintf(&x, "[%s]:%"PRIu16"%s%s", ip_str, port, separator, server_name); in in_addr_port_ifindex_name_to_string()
527 r = asprintf(&x, "%s:%"PRIu16"%s%s", ip_str, port, separator, server_name); in in_addr_port_ifindex_name_to_string()
530 r = asprintf(&x, "%s%%%i%s%s", ip_str, ifindex, separator, server_name); in in_addr_port_ifindex_name_to_string()
532 x = strjoin(ip_str, separator, server_name); in in_addr_port_ifindex_name_to_string()
Din-addr-util.h79 …ly, const union in_addr_union *u, uint16_t port, int ifindex, const char *server_name, char **ret);
/systemd-251/src/resolve/
Dresolved-dnstls-gnutls.c61 if (server->server_name) in dnstls_stream_connect_tls()
62 gnutls_session_set_verify_cert(gs, server->server_name, 0); in dnstls_stream_connect_tls()
76 if (server->server_name) { in dnstls_stream_connect_tls()
77 … r = gnutls_server_name_set(gs, GNUTLS_NAME_DNS, server->server_name, strlen(server->server_name)); in dnstls_stream_connect_tls()
Dresolved-dns-server.c31 const char *server_name) { in dns_server_new() argument
51 if (!isempty(server_name)) { in dns_server_new()
52 name = strdup(server_name); in dns_server_new()
69 .server_name = TAKE_PTR(name), in dns_server_new()
123 free(s->server_name); in dns_server_free()
688 server->server_name, in dns_server_string_full()
753 siphash24_compress_string(s->server_name, state); in dns_server_hash_func()
775 return streq_ptr(x->server_name, y->server_name); in dns_server_compare_func()
824 streq_ptr(s->server_name, name)) in dns_server_find()
Dresolved-conf.c25 _cleanup_free_ char *server_name = NULL; in manager_add_dns_server_by_string() local
34 …in_addr_port_ifindex_name_from_string_auto(word, &family, &address, &port, &ifindex, &server_name); in manager_add_dns_server_by_string()
48 …s_server_find(manager_get_first_dns_server(m, type), family, &address, port, ifindex, server_name); in manager_add_dns_server_by_string()
56 return dns_server_new(m, NULL, type, NULL, family, &address, port, ifindex, server_name); in manager_add_dns_server_by_string()
Dresolved-dnstls-openssl.c86 if (server->server_name) { in dnstls_stream_connect_tls()
88 if (X509_VERIFY_PARAM_set1_host(v, server->server_name, 0) == 0) in dnstls_stream_connect_tls()
98 if (server->server_name) { in dnstls_stream_connect_tls()
99 r = SSL_set_tlsext_host_name(s, server->server_name); in dnstls_stream_connect_tls()
Dresolved-dns-server.h62 char *server_name; member
Dresolved-link-bus.c305 …erver_find(l->dns_servers, dns[i]->family, &dns[i]->address, dns[i]->port, 0, dns[i]->server_name); in bus_link_method_set_dns_servers_internal()
309 … NULL, DNS_SERVER_LINK, l, dns[i]->family, &dns[i]->address, dns[i]->port, 0, dns[i]->server_name); in bus_link_method_set_dns_servers_internal()
Dresolved-bus.c1429 r = sd_bus_message_append(reply, "s", s->server_name); in bus_dns_server_append()
/systemd-251/src/timedate/
Dtimedatectl.c325 const char *server_name; member
399 … = table_add_cell_stringf(table, NULL, "%s (%s)", strna(i->server_address), strna(i->server_name)); in print_ntp_status_info()
610 …, "s", NULL, offsetof(NTPStatusInfo, server_name) }, in show_timesync_status_once()
/systemd-251/src/network/
Dnetworkd-dhcp-server.c286 _cleanup_free_ char *word = NULL, *server_name = NULL; in dhcp4_server_parse_dns_server_string_and_warn() local
296 … r = in_addr_ifindex_name_from_string_auto(word, &family, &address, &ifindex, &server_name); in dhcp4_server_parse_dns_server_string_and_warn()
Dnetworkd-json.c521 JSON_BUILD_PAIR_STRING_NON_EMPTY("ServerName", a->server_name), in dns_build_json_one()