aboutsummaryrefslogtreecommitdiffstats
path: root/common.h
diff options
context:
space:
mode:
authorThomas Gschwantner <tharre3@gmail.com>2019-02-25 11:59:19 +0100
committerThomas Gschwantner <tharre3@gmail.com>2019-02-25 15:34:48 +0100
commit39f5ccc22270adb3348919ce6b3de1017dfbabe1 (patch)
treef97be5d896d13763b64b8bd49b20cb79325f937a /common.h
parentImplement a radix-trie for storing ip=pubkey (diff)
downloadwg-dynamic-39f5ccc22270adb3348919ce6b3de1017dfbabe1.tar.xz
wg-dynamic-39f5ccc22270adb3348919ce6b3de1017dfbabe1.zip
Match incoming IP with pubkey
Diffstat (limited to 'common.h')
-rw-r--r--common.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/common.h b/common.h
index 10ddf61..ca76dc4 100644
--- a/common.h
+++ b/common.h
@@ -9,9 +9,10 @@
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
-
#include <netinet/in.h>
+#include "netlink.h"
+
#define MAX_CONNECTIONS 16
#define MAX_LINESIZE 4096
@@ -50,6 +51,7 @@ struct wg_dynamic_attr {
struct wg_dynamic_request {
enum wg_dynamic_key cmd;
uint32_t version;
+ wg_key pubkey;
struct wg_dynamic_attr *first, *last;
};