diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2020-10-02 12:34:19 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2020-10-07 02:50:50 +0900 |
commit | 9cd9fc8f447329281d6d1614e1a86011c8cbec5c (patch) | |
tree | 9f26f0539dca653397d1b4dd7d92f4d6413c802f /src/network/networkd-network.h | |
parent | 7818f8589adf34101e70ad7340acd03baa4a4def (diff) | |
download | systemd-9cd9fc8f447329281d6d1614e1a86011c8cbec5c.tar.gz |
network: drop list of static addresses
[Address] sections are managed by both LIST and Hashmap. Let's drop the
list and manage them by OrderedHashmap.
Diffstat (limited to 'src/network/networkd-network.h')
-rw-r--r-- | src/network/networkd-network.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/network/networkd-network.h b/src/network/networkd-network.h index c56c24656a..f6ebda4a14 100644 --- a/src/network/networkd-network.h +++ b/src/network/networkd-network.h @@ -278,11 +278,7 @@ struct Network { LLDPEmit lldp_emit; /* LLDP transmission */ char *lldp_mud; /* LLDP MUD URL */ - LIST_HEAD(Address, static_addresses); - - unsigned n_static_addresses; - - Hashmap *addresses_by_section; + OrderedHashmap *addresses_by_section; Hashmap *routes_by_section; Hashmap *nexthops_by_section; Hashmap *fdb_entries_by_section; |