From 10d13c7b37f8e470bde3bd6dea0857c81ffefd63 Mon Sep 17 00:00:00 2001 From: Thomas Gschwantner Date: Tue, 16 Jul 2019 01:12:06 +0200 Subject: Implement lease expiration --- radix-trie.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'radix-trie.h') 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); -- cgit v1.2.3-59-g8ed1b