diff options
author | Thomas Gschwantner <tharre3@gmail.com> | 2019-02-25 11:59:19 +0100 |
---|---|---|
committer | Thomas Gschwantner <tharre3@gmail.com> | 2019-02-25 15:34:48 +0100 |
commit | 39f5ccc22270adb3348919ce6b3de1017dfbabe1 (patch) | |
tree | f97be5d896d13763b64b8bd49b20cb79325f937a /common.h | |
parent | Implement a radix-trie for storing ip=pubkey (diff) | |
download | wg-dynamic-39f5ccc22270adb3348919ce6b3de1017dfbabe1.tar.xz wg-dynamic-39f5ccc22270adb3348919ce6b3de1017dfbabe1.zip |
Match incoming IP with pubkey
Diffstat (limited to 'common.h')
-rw-r--r-- | common.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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; }; |