diff options
Diffstat (limited to 'common.h')
-rw-r--r-- | common.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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; |