Systemd/src/resolve/resolved-gperf.gperf
Lennart Poettering 4e945a6f79 resolved: beef up DNS server configuration logic
We now maintain two lists of DNS servers: system servers and fallback
servers.

system servers are used in combination with any per-link servers.

fallback servers are only used if there are no system servers or
per-link servers configured.

The system server list is supposed to be populated from a foreign tool's
/etc/resolv.conf (not implemented yet).

Also adds a configuration switch for LLMNR, that allows configuring
whether LLMNR shall be used simply for resolving or also for responding.
2014-08-01 16:06:39 +02:00

20 lines
560 B
Plaintext

%{
#include <stddef.h>
#include "conf-parser.h"
#include "resolved-conf.h"
%}
struct ConfigPerfItem;
%null_strings
%language=ANSI-C
%define slot-name section_and_lvalue
%define hash-function-name resolved_gperf_hash
%define lookup-function-name resolved_gperf_lookup
%readonly-tables
%omit-struct-type
%struct-type
%includes
%%
Resolve.DNS, config_parse_dnsv, DNS_SERVER_SYSTEM, 0
Resolve.FallbackDNS, config_parse_dnsv, DNS_SERVER_FALLBACK, 0
Resolve.LLMNR, config_parse_support, 0, offsetof(Manager, llmnr_support)