aboutsummaryrefslogtreecommitdiffstats
path: root/radix-trie.c
diff options
context:
space:
mode:
authorThomas Gschwantner <tharre3@gmail.com>2019-08-03 04:30:37 +0200
committerThomas Gschwantner <tharre3@gmail.com>2019-08-17 19:31:31 +0200
commit2ac97d672f753c8e4a77542e51dcc963eba94279 (patch)
treeda8891ff295dd736beee00315a62888f31a80b42 /radix-trie.c
parentradix-trie: implement pool shadowing (diff)
downloadwg-dynamic-2ac97d672f753c8e4a77542e51dcc963eba94279.tar.xz
wg-dynamic-2ac97d672f753c8e4a77542e51dcc963eba94279.zip
Initialize pools from routes via netlink
Diffstat (limited to 'radix-trie.c')
-rw-r--r--radix-trie.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/radix-trie.c b/radix-trie.c
index 18f656c..25bdd75 100644
--- a/radix-trie.c
+++ b/radix-trie.c
@@ -614,6 +614,18 @@ int ipp_addpool_v6(struct ip_pool *ipp, const struct in6_addr *ip, uint8_t cidr)
return ipp_addpool(ipp, &ipp->ip6_pool, &ipp->ip6_root, 128, key, cidr);
}
+/* TODO: implement */
+int ipp_removepool_v4(struct ip_pool *pool, const struct in_addr *ip)
+{
+ return 0;
+}
+
+/* TODO: implement */
+int ipp_removepool_v6(struct ip_pool *pool, const struct in6_addr *ip)
+{
+ return 0;
+}
+
void ipp_addnth_v4(struct ip_pool *pool, struct in_addr *dest, uint32_t index)
{
struct radix_pool *current = pool->ip4_pool;