diff options
author | Thomas Gschwantner <tharre3@gmail.com> | 2019-07-16 01:12:06 +0200 |
---|---|---|
committer | Thomas Gschwantner <tharre3@gmail.com> | 2019-07-18 02:52:03 +0200 |
commit | 10d13c7b37f8e470bde3bd6dea0857c81ffefd63 (patch) | |
tree | a09179d52bddae5163499ef88b8a9fe528ae3e0c /radix-trie.h | |
parent | radix-trie: inline find_node() into ipp_addpool() (diff) | |
download | wg-dynamic-10d13c7b37f8e470bde3bd6dea0857c81ffefd63.tar.xz wg-dynamic-10d13c7b37f8e470bde3bd6dea0857c81ffefd63.zip |
Implement lease expiration
Diffstat (limited to 'radix-trie.h')
-rw-r--r-- | radix-trie.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/radix-trie.h b/radix-trie.h index 6ffaccf..9475cdb 100644 --- a/radix-trie.h +++ b/radix-trie.h @@ -21,6 +21,9 @@ void ipp_free(struct ip_pool *pool); int ipp_add_v4(struct ip_pool *pool, const struct in_addr *ip, uint8_t cidr); int ipp_add_v6(struct ip_pool *pool, const struct in6_addr *ip, uint8_t cidr); +int ipp_del_v4(struct ip_pool *pool, const struct in_addr *ip, uint8_t cidr); +int ipp_del_v6(struct ip_pool *pool, const struct in6_addr *ip, uint8_t cidr); + uint32_t ipp_gettotal_v4(struct ip_pool *pool); uint64_t ipp_gettotal_v6(struct ip_pool *pool, uint32_t *high); |