summaryrefslogtreecommitdiff
path: root/src/network/networkd-network.c
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2014-01-01 15:16:10 +0100
committerTom Gundersen <teg@jklm.no>2014-01-01 16:23:00 +0100
commitf048a16b464295a4e0a4f4c1210f06343ad31231 (patch)
tree93441872fc06bbc74d6528e0f52ee42715f84172 /src/network/networkd-network.c
parent407fe036a24834203aca6c1eec7d74d9ad3e9ee0 (diff)
networkd: distinguish between static and dynamic addresses/routes
Static addresses/routes are associated with a network. Dynamic addresses/routes are associtade with links (as the corresponding network may be shared by several links).
Diffstat (limited to 'src/network/networkd-network.c')
-rw-r--r--src/network/networkd-network.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/network/networkd-network.c b/src/network/networkd-network.c
index 80c952a55b..56e5637a66 100644
--- a/src/network/networkd-network.c
+++ b/src/network/networkd-network.c
@@ -47,8 +47,8 @@ static int network_load_one(Manager *manager, const char *filename) {
network->manager = manager;
- LIST_HEAD_INIT(network->addresses);
- LIST_HEAD_INIT(network->routes);
+ LIST_HEAD_INIT(network->static_addresses);
+ LIST_HEAD_INIT(network->static_routes);
network->addresses_by_section = hashmap_new(uint64_hash_func, uint64_compare_func);
if (!network->addresses_by_section)
@@ -120,10 +120,10 @@ void network_free(Network *network) {
free(network->description);
- while ((route = network->routes))
+ while ((route = network->static_routes))
route_free(route);
- while ((address = network->addresses))
+ while ((address = network->static_addresses))
address_free(address);
hashmap_free(network->addresses_by_section);