diff options
author | Thomas Gschwantner <tharre3@gmail.com> | 2019-12-03 01:50:04 +0100 |
---|---|---|
committer | Thomas Gschwantner <tharre3@gmail.com> | 2019-12-11 06:22:17 +0100 |
commit | 271af935459c446e4b6f4e3549de5b5a31e454fb (patch) | |
tree | e82dac1d81e78781b0462397765d6b3af1105089 /lease.c | |
parent | radix-trie: fix issues related to shadow-/counting (diff) | |
download | wg-dynamic-271af935459c446e4b6f4e3549de5b5a31e454fb.tar.xz wg-dynamic-271af935459c446e4b6f4e3549de5b5a31e454fb.zip |
radix-trie: implement ipp_removepool_v{4,6}
Diffstat (limited to 'lease.c')
-rw-r--r-- | lease.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -466,10 +466,12 @@ static int process_nlpacket_cb(const struct nlmsghdr *nlh, void *data) } } else if (nlh->nlmsg_type == RTM_DELROUTE) { if (rm->rtm_family == AF_INET) { - if (ipp_removepool_v4(&ipns, addr) && synchronized) + if (ipp_removepool_v4(&ipns, addr, rm->rtm_dst_len) && + synchronized) die("ipp_removepool_v4()\n"); } else if (rm->rtm_family == AF_INET6) { - if (ipp_removepool_v6(&ipns, addr) && synchronized) + if (ipp_removepool_v6(&ipns, addr, rm->rtm_dst_len) && + synchronized) die("ipp_removepool_v6()\n"); } } |