diff options
author | Tom Gundersen <teg@jklm.no> | 2014-07-23 13:48:18 +0200 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2014-07-23 23:54:51 +0200 |
commit | b0e39c8284b5195850a58e4efcce2f059bdcc6ad (patch) | |
tree | e5f1183bec258450f9cd59ce1a8e255179467e0d /src/network/networkd.h | |
parent | 36d054aae0847df38687640909304dde1452b22d (diff) |
networkd: merge DNS and NTP entries when exporting
In the state files, do not distinguish where the various entries came from
(static or DHCP), but include them all in the same list.
Diffstat (limited to 'src/network/networkd.h')
-rw-r--r-- | src/network/networkd.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/network/networkd.h b/src/network/networkd.h index 7d291e5ea3..bae2852845 100644 --- a/src/network/networkd.h +++ b/src/network/networkd.h @@ -105,8 +105,7 @@ struct Network { Hashmap *addresses_by_section; Hashmap *routes_by_section; - LIST_HEAD(Address, dns); - LIST_HEAD(Address, ntp); + char **dns, **ntp; LIST_FIELDS(Network, networks); }; @@ -338,10 +337,6 @@ bool address_equal(Address *a1, Address *a2); DEFINE_TRIVIAL_CLEANUP_FUNC(Address*, address_free); #define _cleanup_address_free_ _cleanup_(address_freep) -int config_parse_dns(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_address(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); |