summaryrefslogtreecommitdiff
path: root/src/network/networkd-manager.c
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2014-05-16 19:43:12 +0200
committerTom Gundersen <teg@jklm.no>2014-05-16 19:48:25 +0200
commitd4920165fe753751aaa274fdc568927d26284eea (patch)
tree0b537258c9bea6254b36fc4b54a9101cd8d66ac8 /src/network/networkd-manager.c
parent7b4d79683998a78d6e123dd034b1e06b74d8030b (diff)
networkd: network - store DNS servers in List rather than Set
This way we preserve the order of preference.
Diffstat (limited to 'src/network/networkd-manager.c')
-rw-r--r--src/network/networkd-manager.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/network/networkd-manager.c b/src/network/networkd-manager.c
index 1b14e9d4f1..013b1dc975 100644
--- a/src/network/networkd-manager.c
+++ b/src/network/networkd-manager.c
@@ -525,9 +525,8 @@ int manager_update_resolv_conf(Manager *m) {
HASHMAP_FOREACH(link, m->links, i) {
if (link->network && link->network->dns) {
Address *address;
- Iterator j;
- SET_FOREACH(address, link->network->dns, j) {
+ LIST_FOREACH(addresses, address, link->network->dns) {
append_dns(f, &address->in_addr.in,
address->family, &count);
}