/systemd-251/src/resolve/ |
D | resolved-dns-transaction.c | 77 r = manager_add_socket_to_graveyard(t->scope->manager, t->dns_udp_fd); in dns_transaction_close_connection() 111 if (t->scope) { in dns_transaction_free() 115 first = hashmap_get(t->scope->transactions_by_key, t->key); in dns_transaction_free() 118 hashmap_replace(t->scope->transactions_by_key, first->key, first); in dns_transaction_free() 120 hashmap_remove(t->scope->transactions_by_key, t->key); in dns_transaction_free() 123 LIST_REMOVE(transactions_by_scope, t->scope->transactions, t); in dns_transaction_free() 126 hashmap_remove(t->scope->manager->dns_transactions, UINT_TO_PTR(t->id)); in dns_transaction_free() 201 DnsScope *scope, in key_ok() argument 216 if (scope->protocol != DNS_PROTOCOL_DNS && in key_ok() 308 t->scope = s; in dns_transaction_new() [all …]
|
D | resolved-dns-scope.c | 1079 DnsScope *scope, in dns_scope_find_transaction() argument 1085 assert(scope); in dns_scope_find_transaction() 1089 first = hashmap_get(scope->transactions_by_key, key); in dns_scope_find_transaction() 1172 DnsScope *scope = userdata; in on_conflict_dispatch() local 1176 assert(scope); in on_conflict_dispatch() 1178 scope->conflict_event_source = sd_event_source_disable_unref(scope->conflict_event_source); in on_conflict_dispatch() 1185 key = ordered_hashmap_first_key(scope->conflict_queue); in on_conflict_dispatch() 1189 rr = ordered_hashmap_remove(scope->conflict_queue, key); in on_conflict_dispatch() 1192 r = dns_scope_make_conflict_packet(scope, rr, &p); in on_conflict_dispatch() 1198 r = dns_scope_emit_udp(scope, -1, AF_UNSPEC, p); in on_conflict_dispatch() [all …]
|
D | resolved-dns-scope.h | 92 DnsTransaction *dns_scope_find_transaction(DnsScope *scope, DnsResourceKey *key, uint64_t query_fla… 94 int dns_scope_notify_conflict(DnsScope *scope, DnsResourceRecord *rr); 95 void dns_scope_check_conflicts(DnsScope *scope, DnsPacket *p); 107 int dns_scope_announce(DnsScope *scope, bool goodbye); 109 int dns_scope_add_dnssd_services(DnsScope *scope); 110 int dns_scope_remove_dnssd_services(DnsScope *scope); 112 bool dns_scope_is_default_route(DnsScope *scope);
|
D | resolved-llmnr.c | 76 DnsScope *scope; in on_llmnr_packet() local 90 scope = manager_find_scope(m, p); in on_llmnr_packet() 91 if (!scope) { in on_llmnr_packet() 99 dns_scope_check_conflicts(scope, p); in on_llmnr_packet() 108 dns_scope_process_query(scope, NULL, p); in on_llmnr_packet() 281 DnsScope *scope; in on_llmnr_stream_packet() local 287 scope = manager_find_scope(s->manager, p); in on_llmnr_stream_packet() 288 if (!scope) in on_llmnr_stream_packet() 293 dns_scope_process_query(scope, s, p); in on_llmnr_stream_packet()
|
D | resolved-dns-query.c | 35 .scope = s, in dns_query_candidate_new() 69 if (c->scope) { in dns_query_candidate_unlink() 70 LIST_REMOVE(candidates_by_scope, c->scope->query_candidates, c); in dns_query_candidate_unlink() 71 c->scope = NULL; in dns_query_candidate_unlink() 100 next = dns_scope_get_search_domains(c->scope); in dns_query_candidate_next_search_domain() 134 t = dns_scope_find_transaction(c->scope, key, c->query->flags); in dns_query_candidate_add_transaction() 136 r = dns_transaction_new(&t, c->scope, key, NULL, c->query->flags); in dns_query_candidate_add_transaction() 145 r = dns_transaction_new(&t, c->scope, NULL, bypass, c->query->flags); in dns_query_candidate_add_transaction() 256 … if (!dns_scope_good_key(c->scope, dns_question_first_key(c->query->question_bypass->question))) in dns_query_candidate_setup_transactions() 266 question = dns_query_question_for_protocol(c->query, c->scope->protocol); in dns_query_candidate_setup_transactions() [all …]
|
D | resolved-mdns.c | 355 DnsScope *scope; in on_mdns_packet() local 365 scope = manager_find_scope(m, p); in on_mdns_packet() 366 if (!scope) { in on_mdns_packet() 391 dns_scope_check_conflicts(scope, p); in on_mdns_packet() 413 LIST_FOREACH(transactions_by_scope, t, scope->transactions) { in on_mdns_packet() 421 …dns_cache_put(&scope->cache, scope->manager->enable_cache, NULL, DNS_PACKET_RCODE(p), p->answer, N… in on_mdns_packet() 426 r = mdns_scope_process_query(scope, p); in on_mdns_packet()
|
D | resolved-dns-zone.c | 173 i->scope, in dns_zone_item_probe_start() 183 … r = dns_transaction_new(&t, i->scope, key, NULL, SD_RESOLVED_NO_CACHE|SD_RESOLVED_NO_ZONE); in dns_zone_item_probe_start() 241 .scope = s, in dns_zone_put() 289 if (i->scope->protocol == DNS_PROTOCOL_MDNS && in dns_zone_add_authenticated_answer() 497 (void) dnssd_signal_conflict(i->scope->manager, dns_resource_key_name(i->rr->key)); in dns_zone_item_conflict() 500 if (manager_is_own_hostname(i->scope->manager, dns_resource_key_name(i->rr->key)) > 0) in dns_zone_item_conflict() 501 manager_next_hostname(i->scope->manager); in dns_zone_item_conflict() 528 } else if (i->probe_transaction->scope->protocol == DNS_PROTOCOL_LLMNR) { in dns_zone_item_notify()
|
D | resolved-resolv-conf.c | 204 DnsScope *scope; in write_resolv_conf_server() local 225 scope = dns_server_scope(s); in write_resolv_conf_server() 226 if (scope && !dns_scope_is_default_route(scope)) { in write_resolv_conf_server()
|
/systemd-251/src/shared/ |
D | install.h | 99 LookupScope scope, 106 LookupScope scope, 113 LookupScope scope, 120 LookupScope scope, 128 LookupScope scope, 135 LookupScope scope, 142 LookupScope scope, 149 LookupScope scope, 156 LookupScope scope, 162 LookupScope scope, [all …]
|
D | install.c | 50 LookupScope scope; member 943 LookupScope scope, in find_symlinks_in_scope() argument 977 if (scope == LOOKUP_SCOPE_USER && path_is_user_config_dir(*p)) { in find_symlinks_in_scope() 1236 r = install_name_printf(ctx->scope, info, word, &printed); in config_parse_also() 1285 r = install_name_printf(ctx->scope, info, rvalue, &printed); in config_parse_default_instance() 1866 LookupScope scope, in install_info_symlink_alias() argument 1883 q = install_name_printf(scope, info, *s, &dst); in install_info_symlink_alias() 1910 LookupScope scope, in install_info_symlink_wants() argument 1973 q = install_name_printf(scope, info, *s, &dst); in install_info_symlink_wants() 2009 if (unit_file_exists(scope, lp, dst) == 0) in install_info_symlink_wants() [all …]
|
D | specifier.c | 319 LookupScope scope = PTR_TO_INT(data); in specifier_group_name() local 324 if (scope == LOOKUP_SCOPE_GLOBAL) in specifier_group_name() 327 t = gid_to_name(scope == LOOKUP_SCOPE_USER ? getgid() : 0); in specifier_group_name() 336 LookupScope scope = PTR_TO_INT(data); in specifier_group_id() local 341 if (scope == LOOKUP_SCOPE_GLOBAL) in specifier_group_id() 344 gid = scope == LOOKUP_SCOPE_USER ? getgid() : 0; in specifier_group_id() 353 LookupScope scope = PTR_TO_INT(data); in specifier_user_name() local 359 if (scope == LOOKUP_SCOPE_GLOBAL) in specifier_user_name() 362 uid = scope == LOOKUP_SCOPE_USER ? getuid() : 0; in specifier_user_name() 380 LookupScope scope = PTR_TO_INT(data); in specifier_user_id() local [all …]
|
D | specifier.h | 88 #define COMMON_CREDS_SPECIFIERS(scope) \ argument 89 { 'g', specifier_group_name, INT_TO_PTR(scope) }, \ 90 { 'G', specifier_group_id, INT_TO_PTR(scope) }, \ 91 { 'u', specifier_user_name, INT_TO_PTR(scope) }, \ 92 { 'U', specifier_user_id, INT_TO_PTR(scope) }
|
/systemd-251/src/basic/ |
D | string-table.h | 17 #define _DEFINE_STRING_TABLE_LOOKUP_TO_STRING(name,type,scope) \ argument 18 scope const char *name##_to_string(type i) { \ 24 #define _DEFINE_STRING_TABLE_LOOKUP_FROM_STRING(name,type,scope) \ argument 25 scope type name##_from_string(const char *s) { \ 29 #define _DEFINE_STRING_TABLE_LOOKUP_FROM_STRING_WITH_BOOLEAN(name,type,yes,scope) \ argument 30 scope type name##_from_string(const char *s) { \ 41 #define _DEFINE_STRING_TABLE_LOOKUP_TO_STRING_FALLBACK(name,type,max,scope) \ argument 42 scope int name##_to_string_alloc(type i, char **str) { \ 58 #define _DEFINE_STRING_TABLE_LOOKUP_FROM_STRING_FALLBACK(name,type,max,scope) \ argument 59 scope type name##_from_string(const char *s) { \ [all …]
|
D | path-lookup.c | 235 LookupScope scope, in acquire_generator_dirs() argument 247 assert(IN_SET(scope, LOOKUP_SCOPE_SYSTEM, LOOKUP_SCOPE_USER, LOOKUP_SCOPE_GLOBAL)); in acquire_generator_dirs() 249 if (scope == LOOKUP_SCOPE_GLOBAL) in acquire_generator_dirs() 254 else if (scope == LOOKUP_SCOPE_SYSTEM) in acquire_generator_dirs() 291 LookupScope scope, in acquire_transient_dir() argument 298 assert(IN_SET(scope, LOOKUP_SCOPE_SYSTEM, LOOKUP_SCOPE_USER, LOOKUP_SCOPE_GLOBAL)); in acquire_transient_dir() 300 if (scope == LOOKUP_SCOPE_GLOBAL) in acquire_transient_dir() 305 else if (scope == LOOKUP_SCOPE_SYSTEM) in acquire_transient_dir() 316 static int acquire_config_dirs(LookupScope scope, char **persistent, char **runtime) { in acquire_config_dirs() argument 323 switch (scope) { in acquire_config_dirs() [all …]
|
D | hash-funcs.h | 18 … _DEFINE_HASH_OPS(uq, name, type, hash_func, compare_func, free_key_func, free_value_func, scope) \ argument 21 scope const struct hash_ops name = { \ 35 …e _DEFINE_HASH_OPS_WITH_KEY_DESTRUCTOR(uq, name, type, hash_func, compare_func, free_func, scope) \ argument 38 UNIQ_T(static_free_wrapper, uq), NULL, scope) 40 …_OPS_WITH_VALUE_DESTRUCTOR(uq, name, type, hash_func, compare_func, type_value, free_func, scope) \ argument 43 NULL, UNIQ_T(static_free_wrapper, uq), scope) 45 …_FULL(uq, name, type, hash_func, compare_func, free_key_func, type_value, free_value_func, scope) \ argument 50 UNIQ_T(static_free_value_wrapper, uq), scope)
|
D | path-lookup.h | 62 int lookup_paths_init(LookupPaths *lp, LookupScope scope, LookupPathsFlags flags, const char *root_… 63 int lookup_paths_init_or_warn(LookupPaths *lp, LookupScope scope, LookupPathsFlags flags, const cha… 76 char **generator_binary_paths(LookupScope scope);
|
/systemd-251/src/test/ |
D | test-path-lookup.c | 14 static void test_paths_one(LookupScope scope) { in test_paths_one() argument 23 assert_se(lookup_paths_init(&lp_without_env, scope, 0, NULL) >= 0); in test_paths_one() 29 assert_se(lookup_paths_init(&lp_with_env, scope, 0, NULL) == 0); in test_paths_one() 73 static void test_generator_binary_paths_one(LookupScope scope) { in test_generator_binary_paths_one() argument 87 gp_without_env = generator_binary_paths(scope); in test_generator_binary_paths_one() 88 … env_gp_without_env = env_generator_binary_paths(scope == LOOKUP_SCOPE_SYSTEM ? true : false); in test_generator_binary_paths_one() 90 log_info("Generators dirs (%s):", scope == LOOKUP_SCOPE_SYSTEM ? "system" : "user"); in test_generator_binary_paths_one() 94 … log_info("Environment generators dirs (%s):", scope == LOOKUP_SCOPE_SYSTEM ? "system" : "user"); in test_generator_binary_paths_one() 106 gp_with_env = generator_binary_paths(scope); in test_generator_binary_paths_one() 107 env_gp_with_env = env_generator_binary_paths(scope == LOOKUP_SCOPE_SYSTEM ? true : false); in test_generator_binary_paths_one() [all …]
|
/systemd-251/src/nspawn/ |
D | nspawn-register.c | 235 _cleanup_free_ char *scope = NULL; in allocate_scope() local 245 r = unit_name_mangle_with_suffix(machine_name, "as machine name", 0, ".scope", &scope); in allocate_scope() 253 r = sd_bus_message_append(m, "ss", scope, "fail"); in allocate_scope() 328 _cleanup_free_ char *scope = NULL; in terminate_scope() local 331 r = unit_name_mangle_with_suffix(machine_name, "to terminate", 0, ".scope", &scope); in terminate_scope() 335 r = bus_call_method(bus, bus_systemd_mgr, "AbandonScope", &error, NULL, "s", scope); in terminate_scope() 337 …log_debug_errno(r, "Failed to abandon scope '%s', ignoring: %s", scope, bus_error_message(&error, … in terminate_scope() 348 scope, in terminate_scope() 352 …log_debug_errno(r, "Failed to SIGKILL scope '%s', ignoring: %s", scope, bus_error_message(&error, … in terminate_scope() 356 r = bus_call_method(bus, bus_systemd_mgr, "UnrefUnit", &error, NULL, "s", scope); in terminate_scope() [all …]
|
/systemd-251/src/login/ |
D | logind-session.c | 125 if (s->scope) { in session_free() 126 hashmap_remove(s->manager->session_units, s->scope); in session_free() 127 free(s->scope); in session_free() 249 if (s->scope) in session_save() 250 fprintf(f, "SCOPE=%s\n", s->scope); in session_save() 424 "SCOPE", &s->scope, in session_load() 648 if (!s->scope) { in session_start_scope() 649 _cleanup_free_ char *scope = NULL; in session_start_scope() local 654 scope = strjoin("session-", s->id, ".scope"); in session_start_scope() 655 if (!scope) in session_start_scope() [all …]
|
D | logind-dbus.h | 27 int manager_start_scope(Manager *manager, const char *scope, pid_t pid, const char *slice, const ch… 30 int manager_abandon_scope(Manager *manager, const char *scope, sd_bus_error *error);
|
/systemd-251/test/units/ |
D | testsuite-20.sh | 147 systemd-run --scope --unit test20-true.scope /bin/true 160 runas testuser systemd-run --scope --user --unit test20-true.scope /bin/true
|
D | testsuite-60.sh | 53 if journalctl -u init.scope | grep -q "(mount-monitor-dispatch) entered rate limit"; then 66 if journalctl -u init.scope | grep -q "(mount-monitor-dispatch) left rate limit"; then
|
/systemd-251/src/network/ |
D | networkd-bridge-vlan.c | 20 static bool is_bit_set(unsigned bit, uint32_t scope) { in is_bit_set() argument 21 assert(bit < sizeof(scope)*8); in is_bit_set() 22 return scope & (UINT32_C(1) << bit); in is_bit_set()
|
/systemd-251/src/core/ |
D | meson.build | 42 dbus-scope.c 43 dbus-scope.h 104 scope.c 105 scope.h
|
/systemd-251/src/libsystemd/sd-netlink/ |
D | netlink-message-rtnl.c | 56 int sd_rtnl_message_route_set_scope(sd_netlink_message *m, unsigned char scope) { in sd_rtnl_message_route_set_scope() argument 65 rtm->rtm_scope = scope; in sd_rtnl_message_route_set_scope() 172 int sd_rtnl_message_route_get_scope(sd_netlink_message *m, unsigned char *scope) { in sd_rtnl_message_route_get_scope() argument 178 assert_return(scope, -EINVAL); in sd_rtnl_message_route_get_scope() 182 *scope = rtm->rtm_scope; in sd_rtnl_message_route_get_scope() 576 int sd_rtnl_message_addr_set_scope(sd_netlink_message *m, unsigned char scope) { in sd_rtnl_message_addr_set_scope() argument 585 ifa->ifa_scope = scope; in sd_rtnl_message_addr_set_scope() 620 int sd_rtnl_message_addr_get_scope(sd_netlink_message *m, unsigned char *scope) { in sd_rtnl_message_addr_get_scope() argument 626 assert_return(scope, -EINVAL); in sd_rtnl_message_addr_get_scope() 630 *scope = ifa->ifa_scope; in sd_rtnl_message_addr_get_scope()
|