chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
networkd: distinguish between static and dynamic addresses/routes
[elogind.git]
/
src
/
network
/
networkd-network.c
diff --git
a/src/network/networkd-network.c
b/src/network/networkd-network.c
index 80c952a55b74990f5fd372d6b892dd6bdcccc4ab..56e5637a6601cdabcb9c19ae57cef9e3a552199d 100644
(file)
--- 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;
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)
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);
free(network->description);
- while ((route = network->routes))
+ while ((route = network->
static_
routes))
route_free(route);
route_free(route);
- while ((address = network->addresses))
+ while ((address = network->
static_
addresses))
address_free(address);
hashmap_free(network->addresses_by_section);
address_free(address);
hashmap_free(network->addresses_by_section);