Home
last modified time | relevance | path

Searched refs:domains (Results 1 – 25 of 62) sorted by relevance

123

/systemd-251/src/libsystemd-network/
Dtest-sd-dhcp-lease.c18 _cleanup_strv_free_ char **domains = NULL; in TEST() local
24 r = dhcp_lease_parse_search_domains(optionbuf, sizeof(optionbuf), &domains); in TEST()
26 assert_se(streq(domains[0], "FOO.BAR")); in TEST()
27 assert_se(streq(domains[1], "ABCD.EFG")); in TEST()
32 _cleanup_strv_free_ char **domains = NULL; in TEST() local
37 r = dhcp_lease_parse_search_domains(optionbuf, sizeof(optionbuf), &domains); in TEST()
39 assert_se(streq(domains[0], "FOO")); in TEST()
40 assert_se(streq(domains[1], "FOO")); in TEST()
45 _cleanup_strv_free_ char **domains = NULL; in TEST() local
51 r = dhcp_lease_parse_search_domains(optionbuf, sizeof(optionbuf), &domains); in TEST()
[all …]
Dsd-dhcp6-lease.c299 _cleanup_strv_free_ char **domains = NULL; in dhcp6_lease_add_domains() local
308 r = dhcp6_option_parse_domainname_list(optval, optlen, &domains); in dhcp6_lease_add_domains()
312 return strv_extend_strv(&lease->domains, domains, true); in dhcp6_lease_add_domains()
319 if (!lease->domains) in sd_dhcp6_lease_get_domains()
322 *ret = lease->domains; in sd_dhcp6_lease_get_domains()
323 return strv_length(lease->domains); in sd_dhcp6_lease_get_domains()
660 strv_free(lease->domains); in dhcp6_lease_free()
Dsd-dhcp-lease.c252 int sd_dhcp_lease_get_search_domains(sd_dhcp_lease *lease, char ***domains) { in sd_dhcp_lease_get_search_domains() argument
256 assert_return(domains, -EINVAL); in sd_dhcp_lease_get_search_domains()
260 *domains = lease->search_domains; in sd_dhcp_lease_get_search_domains()
830 int dhcp_lease_parse_search_domains(const uint8_t *option, size_t len, char ***domains) { in dhcp_lease_parse_search_domains() argument
835 assert(domains); in dhcp_lease_parse_search_domains()
913 strv_free_and_replace(*domains, names); in dhcp_lease_parse_search_domains()
1158 *domains = NULL, in dhcp_lease_load() local
1195 "DOMAIN_SEARCH_LIST", &domains, in dhcp_lease_load()
1335 if (domains) { in dhcp_lease_load()
1337 a = strv_split(domains, " "); in dhcp_lease_load()
Ddhcp-lease-internal.h85 int dhcp_lease_parse_search_domains(const uint8_t *option, size_t len, char ***domains);
Ddhcp6-lease-internal.h39 char **domains; member
/systemd-251/src/resolve/
Dresolved-dns-search-domain.c51 LIST_APPEND(domains, l->search_domains, d); in dns_search_domain_new()
56 LIST_APPEND(domains, m->search_domains, d); in dns_search_domain_new()
93 LIST_REMOVE(domains, d->link->search_domains, d); in dns_search_domain_unlink()
99 LIST_REMOVE(domains, d->manager->search_domains, d); in dns_search_domain_unlink()
126 LIST_FIND_TAIL(domains, d, tail); in dns_search_domain_move_back_and_unmark()
127 LIST_REMOVE(domains, d->link->search_domains, d); in dns_search_domain_move_back_and_unmark()
128 LIST_INSERT_AFTER(domains, d->link->search_domains, tail, d); in dns_search_domain_move_back_and_unmark()
132 LIST_FIND_TAIL(domains, d, tail); in dns_search_domain_move_back_and_unmark()
133 LIST_REMOVE(domains, d->manager->search_domains, d); in dns_search_domain_move_back_and_unmark()
134 LIST_INSERT_AFTER(domains, d->manager->search_domains, tail, d); in dns_search_domain_move_back_and_unmark()
[all …]
Dresolved-resolv-conf.c239 OrderedSet *domains, in write_resolv_conf_search() argument
243 assert(domains); in write_resolv_conf_search()
248 ORDERED_SET_FOREACH(domain, domains) { in write_resolv_conf_search()
256 static int write_uplink_resolv_conf_contents(FILE *f, OrderedSet *dns, OrderedSet *domains) { in write_uplink_resolv_conf_contents() argument
285 if (ordered_set_isempty(domains)) in write_uplink_resolv_conf_contents()
289 write_resolv_conf_search(domains, f); in write_uplink_resolv_conf_contents()
294 static int write_stub_resolv_conf_contents(FILE *f, OrderedSet *dns, OrderedSet *domains) { in write_stub_resolv_conf_contents() argument
318 if (ordered_set_isempty(domains)) in write_stub_resolv_conf_contents()
322 write_resolv_conf_search(domains, f); in write_stub_resolv_conf_contents()
328 _cleanup_ordered_set_free_ OrderedSet *dns = NULL, *domains = NULL; in manager_write_resolv_conf() local
[all …]
Dresolved-manager.c1386 int manager_compile_search_domains(Manager *m, OrderedSet **domains, int filter_route) { in manager_compile_search_domains() argument
1391 assert(domains); in manager_compile_search_domains()
1393 r = ordered_set_ensure_allocated(domains, &dns_name_hash_ops); in manager_compile_search_domains()
1397 LIST_FOREACH(domains, d, m->search_domains) { in manager_compile_search_domains()
1403 r = ordered_set_put(*domains, d->name); in manager_compile_search_domains()
1412 LIST_FOREACH(domains, d, l->search_domains) { in manager_compile_search_domains()
1418 r = ordered_set_put(*domains, d->name); in manager_compile_search_domains()
Dresolved-dns-search-domain.h30 LIST_FIELDS(DnsSearchDomain, domains);
Dresolvectl.c1423 char **domains; member
1436 char **domains; member
1451 strv_free(p->domains); in link_info_clear()
1462 strv_free(p->domains); in global_info_clear()
1543 … "a(sb)", map_link_domains, offsetof(LinkInfo, domains) }, in status_ifindex()
1594 return status_print_strv_ifindex(ifindex, name, link_info.domains); in status_ifindex()
1702 r = dump_list(table, "DNS Domain:", link_info.domains); in status_ifindex()
1822 … "a(isb)", map_global_domains, offsetof(GlobalInfo, domains) }, in status_global()
1858 return status_print_strv_global(global_info.domains); in status_global()
1934 r = dump_list(table, "DNS Domain:", global_info.domains); in status_global()
Dresolved-manager.h192 int manager_compile_search_domains(Manager *m, OrderedSet **domains, int filter_route);
Dresolved-link.c1230 LIST_FOREACH(domains, domain, l->search_domains) { in link_save_user()
1285 *domains = NULL, in link_load_user() local
1309 "DOMAINS", &domains, in link_load_user()
1351 for (p = domains;;) { in link_load_user()
Dresolved-link-bus.c155 LIST_FOREACH(domains, d, l->search_domains) { in property_get_domains()
902 SD_BUS_ARGS("a(sb)", domains),
DRFCs60 …/documents/correspondence-reports-documents/2013-2/iab-statement-dotless-domains-considered-harmfu…
Dresolved-bus.c1609 LIST_FOREACH(domains, d, m->search_domains) { in bus_property_get_domains()
1616 LIST_FOREACH(domains, d, l->search_domains) { in bus_property_get_domains()
2173 SD_BUS_ARGS("i", ifindex, "a(sb)", domains),
Dresolved-dns-scope.c672 LIST_FOREACH(domains, d, dns_scope_get_search_domains(s)) { in dns_scope_good_domain()
1600 LIST_FOREACH(domains, domain, first) { in dns_scope_has_route_only_domains()
/systemd-251/docs/
DRESOLVED-VPNS.md10 `systemd-resolved.service` supports routing lookups for specific domains to specific
24 hosts. Only specific domains should be resolved via the VPN's DNS servers,
35 1. Search domains: these are traditional DNS configuration parameters and are
49 2. Routing domains: these are very similar to search domains, but are purely
55 Why the need to have both concepts, i.e. search *and* routing domains?
58 use-cases. Routing domains are a concept `systemd-resolved.service`
59 introduced, while search domains are traditionally available and are part of
61 domains are probably the more appropriate concept, but not easily available,
64 Routing domains for `systemd-resolved.service` are usually presented along
65 with search domains in mostly the same way, but prefixed with `~` to
[all …]
/systemd-251/src/systemd/
Dsd-network.h68 int sd_network_get_search_domains(char ***domains);
71 int sd_network_get_route_domains(char ***domains);
171 int sd_network_link_get_search_domains(int ifindex, char ***domains);
174 int sd_network_link_get_route_domains(int ifindex, char ***domains);
Dsd-dhcp-lease.h67 int sd_dhcp_lease_get_search_domains(sd_dhcp_lease *lease, char ***domains);
/systemd-251/src/network/
Dnetworkd-state-file.c205 char **domains = NULL; in manager_save() local
216 r = sd_dhcp_lease_get_search_domains(link->dhcp_lease, &domains); in manager_save()
218 r = ordered_set_put_strdupv(target_domains, domains); in manager_save()
442 char **domains; in link_save_domains() local
446 if (sd_dhcp_lease_get_search_domains(link->dhcp_lease, &domains) >= 0) in link_save_domains()
447 fputstrv(f, domains, NULL, &space); in link_save_domains()
451 char **domains; in link_save_domains() local
453 if (sd_dhcp6_lease_get_domains(link->dhcp6_lease, &domains) >= 0) in link_save_domains()
454 fputstrv(f, domains, NULL, &space); in link_save_domains()
Dnetworkd-json.c880 char **domains; in domains_build_json() local
932 if (sd_dhcp_lease_get_search_domains(link->dhcp_lease, &domains) >= 0) { in domains_build_json()
933 STRV_FOREACH(p, domains) { in domains_build_json()
954 if (sd_dhcp6_lease_get_domains(link->dhcp6_lease, &domains) >= 0) { in domains_build_json()
955 STRV_FOREACH(p, domains) { in domains_build_json()
Dnetworkd-manager-bus.c332 SD_BUS_ARGS("i", ifindex, "a(sb)", domains),
/systemd-251/shell-completion/zsh/
D_resolvectl48 domain:"Configure per-interface search and route-only domains"
52 nta:"Configure per-interface nta domains"
83 '--search=no[Do not use search domains]' \
/systemd-251/po/
Dbe.po697 msgid "Set domains"
702 msgid "Authentication is required to set domains."
Dka.po671 msgid "Set domains"
676 msgid "Authentication is required to set domains."

123