]>
git.ipfire.org Git - thirdparty/systemd.git/blob - src/resolve/resolved-etc-hosts.h
1 /* SPDX-License-Identifier: LGPL-2.1+ */
4 #include "resolved-manager.h"
5 #include "resolved-dns-question.h"
6 #include "resolved-dns-answer.h"
8 typedef struct EtcHostsItem
{
9 struct in_addr_data address
;
14 typedef struct EtcHostsItemByName
{
17 struct in_addr_data
**addresses
;
18 size_t n_addresses
, n_allocated
;
21 int etc_hosts_parse(EtcHosts
*hosts
, FILE *f
);
22 void etc_hosts_free(EtcHosts
*hosts
);
24 void manager_etc_hosts_flush(Manager
*m
);
25 int manager_etc_hosts_lookup(Manager
*m
, DnsQuestion
* q
, DnsAnswer
**answer
);