]>
git.ipfire.org Git - thirdparty/systemd.git/blob - src/resolve/resolved-etc-hosts.h
1 /* SPDX-License-Identifier: LGPL-2.1-or-later */
4 #include "in-addr-util.h"
5 #include "resolved-forward.h"
7 typedef struct EtcHosts
{
13 typedef struct EtcHostsItemByAddress
{
14 struct in_addr_data address
;
16 const char *canonical_name
;
17 } EtcHostsItemByAddress
;
19 typedef struct EtcHostsItemByName
{
24 int etc_hosts_parse(EtcHosts
*hosts
, FILE *f
);
25 void etc_hosts_clear(EtcHosts
*hosts
);
27 void manager_etc_hosts_flush(Manager
*m
);
28 int manager_etc_hosts_lookup(Manager
*m
, DnsQuestion
* q
, DnsAnswer
**answer
);