diff options
author | Thomas Gschwantner <tharre3@gmail.com> | 2019-07-28 03:25:08 +0200 |
---|---|---|
committer | Thomas Gschwantner <tharre3@gmail.com> | 2019-08-02 21:49:15 +0200 |
commit | f7aae442151c3f18cd542b8260601759658ca460 (patch) | |
tree | ab0ccfc1a45e4bc9e038f3837ebc93fcd7d1e58d /lease.h | |
parent | Move counting logic from lease.c to radix-trie.c (diff) | |
download | wg-dynamic-f7aae442151c3f18cd542b8260601759658ca460.tar.xz wg-dynamic-f7aae442151c3f18cd542b8260601759658ca460.zip |
radix-trie: implement pool shadowing
Pools are created from routes which can overlap. Consider the following:
ip route add 192.168.4.0/28
ip route add 192.168.4.0/24
sleep 3600
ip route del 192.168.4.0/24
Here, the pool created from the first route is being shadowed by the
pool from the second route. However, since the second pool is later
removed again we cannot simply combine them. So instead this commit
shadows them, to avoid them being double counted.
Diffstat (limited to 'lease.h')
0 files changed, 0 insertions, 0 deletions