aboutsummaryrefslogtreecommitdiffstats
path: root/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'common.h')
-rw-r--r--common.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/common.h b/common.h
index 04df3cf..917dfe8 100644
--- a/common.h
+++ b/common.h
@@ -21,7 +21,7 @@
static const char WG_DYNAMIC_ADDR[] = "fe80::";
static const uint16_t WG_DYNAMIC_PORT = 970; /* ASCII sum of "wireguard" */
-#define WG_DYNAMIC_LEASETIME 10 /* NOTE: 10s is good for testing purposes */
+#define WG_DYNAMIC_DEFAULT_LEASETIME 3600
#define ITEMS \
E(WGKEY_UNKNOWN, "") /* must be the first entry */ \
@@ -62,6 +62,9 @@ static const char *const WG_DYNAMIC_ERR[] = { ITEMS };
struct wg_dynamic_request {
enum wg_dynamic_key cmd;
uint32_t version;
+ int fd;
+ wg_key pubkey;
+ struct in6_addr lladdr;
unsigned char *buf;
size_t len; /* <= MAX_LINESIZE */
void *result;