summaryrefslogtreecommitdiff
path: root/src/network/networkd.h
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2014-08-15 14:21:08 +0200
committerTom Gundersen <teg@jklm.no>2014-08-15 15:15:24 +0200
commit6192b846ca0d15602e94ddb5da4420b7c60d64a5 (patch)
treeaff8d3115a6fc783c95167a221a0069a82f4c9b2 /src/network/networkd.h
parent2f3a215f61d758cd59b3be5b65976a12401ac4ff (diff)
networkd: add support for Domains= to .network files
This allows the search/routing domanis to be specified per link/network and be passed on to resolved.
Diffstat (limited to 'src/network/networkd.h')
-rw-r--r--src/network/networkd.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/network/networkd.h b/src/network/networkd.h
index 90e798dbf5..a9867d9e7f 100644
--- a/src/network/networkd.h
+++ b/src/network/networkd.h
@@ -111,7 +111,7 @@ struct Network {
Hashmap *addresses_by_section;
Hashmap *routes_by_section;
- char **dns, **ntp;
+ char **domains, **dns, **ntp;
LLMNRSupport llmnr;
@@ -224,6 +224,17 @@ int config_parse_netdev(const char *unit, const char *filename, unsigned line,
const char *section, unsigned section_line, const char *lvalue,
int ltype, const char *rvalue, void *data, void *userdata);
+int config_parse_domains(const char *unit,
+ const char *filename,
+ unsigned line,
+ const char *section,
+ unsigned section_line,
+ const char *lvalue,
+ int ltype,
+ const char *rvalue,
+ void *data,
+ void *userdata);
+
int config_parse_tunnel(const char *unit,
const char *filename,
unsigned line,