aboutsummaryrefslogtreecommitdiffstats
path: root/common.h
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordberg.se>2019-03-21 23:51:15 +0100
committerLinus Nordberg <linus@nordberg.se>2019-03-21 23:51:15 +0100
commit13df636c4801fd4392ac09d573a91dea0d7989a9 (patch)
tree4fe0ccc2fb42d3f212154dae0f992b72e37ed427 /common.h
parentformatting (diff)
downloadwg-dynamic-13df636c4801fd4392ac09d573a91dea0d7989a9.tar.xz
wg-dynamic-13df636c4801fd4392ac09d573a91dea0d7989a9.zip
use struct wg_lease
Diffstat (limited to 'common.h')
-rw-r--r--common.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/common.h b/common.h
index 3a8411d..5b534b1 100644
--- a/common.h
+++ b/common.h
@@ -69,6 +69,12 @@ struct wg_combined_ip {
uint8_t cidr;
};
+struct wg_lease {
+ struct wg_combined_ip ip4;
+ struct wg_combined_ip ip6;
+ uint32_t leasetime;
+};
+
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
void free_wg_dynamic_request(struct wg_dynamic_request *req);