diff options
author | Lennart Poettering <lennart@poettering.net> | 2016-06-03 19:14:12 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2016-06-03 19:14:12 +0200 |
commit | 8c34b963076a1ce7c9102802a13502be82a02cc7 (patch) | |
tree | eac34c1df2a831905e52b198eb13d6c001f85ab9 /src/network/networkd-network.h | |
parent | f3e43635932c14f8f0aea078adf3bfe09a9ba683 (diff) |
networkd: enforce a limit on the number of statically assigned addresses/routes/fdb entries
We should put a limit on everything, hence also on these resources.
Diffstat (limited to 'src/network/networkd-network.h')
-rw-r--r-- | src/network/networkd-network.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/network/networkd-network.h b/src/network/networkd-network.h index 91099161ce..248a427e8d 100644 --- a/src/network/networkd-network.h +++ b/src/network/networkd-network.h @@ -169,6 +169,10 @@ struct Network { LIST_HEAD(Route, static_routes); LIST_HEAD(FdbEntry, static_fdb_entries); + unsigned n_static_addresses; + unsigned n_static_routes; + unsigned n_static_fdb_entries; + Hashmap *addresses_by_section; Hashmap *routes_by_section; Hashmap *fdb_entries_by_section; |