summaryrefslogtreecommitdiff
path: root/nest/route.h
diff options
context:
space:
mode:
authorMikael Magnusson <mikma@users.sourceforge.net>2019-02-28 00:44:40 +0100
committerMikael Magnusson <mikma@users.sourceforge.net>2019-02-28 00:44:40 +0100
commit7b42938143dc02a085a5a63c7d4aa310a6695895 (patch)
tree5537a8a7165530c1ad0a8092d4e76e22b263d383 /nest/route.h
parent7c36eb3e8bd7d06f65dc7319d42b6abe782c5b89 (diff)
Wireguard: Initial commitold/wireguard-initial
Diffstat (limited to 'nest/route.h')
-rw-r--r--nest/route.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/nest/route.h b/nest/route.h
index 8dfbb376..ad89e4b2 100644
--- a/nest/route.h
+++ b/nest/route.h
@@ -13,6 +13,10 @@
#include "lib/resource.h"
#include "lib/net.h"
+#ifdef CONFIG_WIREGUARD
+# include "sysdep/linux/wireguard.h"
+#endif /* CONFIG_WIREGUARD */
+
struct ea_list;
struct protocol;
struct proto;
@@ -203,6 +207,13 @@ struct hostentry {
byte dest; /* Chosen route destination type (RTD_...) */
byte nexthop_linkable; /* Nexthop list is completely non-device */
u32 igp_metric; /* Chosen route IGP metric */
+#ifdef CONFIG_WIREGUARD
+ union {
+ struct {
+ wg_key pub_key;
+ } wg;
+ } u;
+#endif
};
typedef struct rte {