Home
last modified time | relevance | path

Searched refs:hosts (Results 1 – 18 of 18) sorted by relevance

/systemd-251/src/resolve/
Dtest-resolved-etc-hosts.c26 _cleanup_(etc_hosts_free) EtcHosts hosts = {}; in TEST()
27 assert_se(etc_hosts_parse(&hosts, f) == 0); in TEST()
70 _cleanup_(etc_hosts_free) EtcHosts hosts = {}; in TEST()
71 assert_se(etc_hosts_parse(&hosts, f) == 0); in TEST()
74 assert_se(bn = hashmap_get(hosts.by_name, "some.where")); in TEST()
81 assert_se(bn = hashmap_get(hosts.by_name, "dash")); in TEST()
86 assert_se(bn = hashmap_get(hosts.by_name, "dash-dash.where-dash")); in TEST()
93 assert_se(!hashmap_get(hosts.by_name, s)); in TEST()
95 assert_se(bn = hashmap_get(hosts.by_name, "before.comment")); in TEST()
103 assert_se(!hashmap_get(hosts.by_name, "within.comment")); in TEST()
[all …]
Dresolved-etc-hosts.c32 void etc_hosts_free(EtcHosts *hosts) { in etc_hosts_free() argument
33 hosts->by_address = hashmap_free_with_destructor(hosts->by_address, etc_hosts_item_free); in etc_hosts_free()
34 hosts->by_name = hashmap_free_with_destructor(hosts->by_name, etc_hosts_item_by_name_free); in etc_hosts_free()
35 hosts->no_address = set_free_free(hosts->no_address); in etc_hosts_free()
43 static int parse_line(EtcHosts *hosts, unsigned nr, const char *line) { in parse_line() argument
50 assert(hosts); in parse_line()
76 item = hashmap_get(hosts->by_address, &address); in parse_line()
78 r = hashmap_ensure_allocated(&hosts->by_address, &in_addr_data_hash_ops); in parse_line()
90 r = hashmap_put(hosts->by_address, &item->address, item); in parse_line()
123 … r = set_ensure_consume(&hosts->no_address, &dns_name_hash_ops, TAKE_PTR(name)); in parse_line()
[all …]
Dmeson.build55 'resolved-etc-hosts.c',
56 'resolved-etc-hosts.h',
190 [files('test-resolved-etc-hosts.c',
191 'resolved-etc-hosts.c',
192 'resolved-etc-hosts.h'),
233 [files('fuzz-etc-hosts.c',
234 'resolved-etc-hosts.c',
235 'resolved-etc-hosts.h'),
Dresolved-etc-hosts.h21 int etc_hosts_parse(EtcHosts *hosts, FILE *f);
22 void etc_hosts_free(EtcHosts *hosts);
/systemd-251/tools/
Doss-fuzz.sh88 hosts=$(mktemp)
89 wget -O "$hosts" https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
90 zip -jq "$OUT/fuzz-etc-hosts_seed_corpus.zip" "$hosts"
91 rm -rf "$hosts"
/systemd-251/shell-completion/zsh/
D_sd_hosts_or_user_at_host5 'users-hosts:: _user_at_host' \
6 'hosts:: _hosts'
/systemd-251/factory/etc/
Dnsswitch.conf8 hosts: mymachines resolve [!UNAVAIL=return] files myhostname dns
/systemd-251/test/
Dnetworkd-test.py722 hosts = os.path.join(self.workdir, 'hosts')
723 with open(hosts, 'w') as f:
725 subprocess.check_call(['mount', '--bind', hosts, '/etc/hosts'])
/systemd-251/
DREADME333 To make use of these NSS modules, please add them to the "hosts:",
342 hosts: files mymachines resolve [!UNAVAIL=return] dns myhostname
DTODO1385 * firstboot: allow provisioning of /etc/hosts entries, so that we can via the
1386 credentials logic insert host name to resolve into containers/hosts. Usecase:
DNEWS1704 connections towards the default routes. On multi-homed hosts this is
5331 from Strict mode to Loose mode. This is more appropriate for hosts
5405 honoring /etc/hosts entries.
7213 names of remote hosts and reply to mDNS A and AAAA requests.
7776 configuration line for the "hosts" entry in /etc/nsswitch.conf is:
7778 hosts: files mymachines resolve [!UNAVAIL=return] dns myhostname
8386 resolved now also synthesizes RRs for all entries from /etc/hosts.
11618 to connect to remote hosts via SSH. This is particularly
12206 the initrd serialize its state and have the hosts systemd
12420 implicitly. This makes /etc/hosts an optional file and
[all …]
/systemd-251/docs/
DCREDENTIALS.md170 systemd-run -P --wait -p LoadCredential=abc:/etc/hosts systemd-creds cat abc
174 system's `/etc/hosts` file. This credential is then written to standard output
DPREDICTABLE_INTERFACE_NAMES.md57 Does this have any drawbacks? Yes, it does. Previously it was practically guaranteed that hosts equ…
DBUILDING_IMAGES.md136 remains resolvable, even without `/etc/hosts` around.
DRESOLVED-VPNS.md24 hosts. Only specific domains should be resolved via the VPN's DNS servers,
DJOURNAL_FILE_FORMAT.md349 reside on different hosts. Readers which detect they are run on journal files
/systemd-251/src/test/
Dmeson.build633 [files('test-nss-hosts.c',
/systemd-251/hwdb.d/
Dpci.ids13575 # This hosts more than just the Intel 537 codec, it also hosts PCtel (SIL33) and SmartLink (SIL34) …