diff options
author | 2019-03-21 23:51:15 +0100 | |
---|---|---|
committer | 2019-03-21 23:51:15 +0100 | |
commit | 13df636c4801fd4392ac09d573a91dea0d7989a9 (patch) | |
tree | 4fe0ccc2fb42d3f212154dae0f992b72e37ed427 /common.h | |
parent | formatting (diff) | |
download | wg-dynamic-13df636c4801fd4392ac09d573a91dea0d7989a9.tar.xz wg-dynamic-13df636c4801fd4392ac09d573a91dea0d7989a9.zip |
use struct wg_lease
Diffstat (limited to 'common.h')
-rw-r--r-- | common.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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); |