diff options
author | Mikael Magnusson <mikma@users.sourceforge.net> | 2019-03-27 01:33:44 +0100 |
---|---|---|
committer | Mikael Magnusson <mikma@users.sourceforge.net> | 2020-05-08 18:52:55 +0200 |
commit | 6fde8496187ddfd5f481c4dd3ee5a5509830cd9f (patch) | |
tree | 40c925c3d771c0c8eacd3a07d22948739f6fd28c /proto/wireguard/wireguard.h | |
parent | 0ed082c568eb9df878d94c44754bd5e725137fa8 (diff) |
Wireguard: Set up wireguard device
Add private key and listen port items.
Diffstat (limited to 'proto/wireguard/wireguard.h')
-rw-r--r-- | proto/wireguard/wireguard.h | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/proto/wireguard/wireguard.h b/proto/wireguard/wireguard.h index 1292b1c0..cc116e38 100644 --- a/proto/wireguard/wireguard.h +++ b/proto/wireguard/wireguard.h @@ -2,22 +2,33 @@ #define _BIRD_WIREGUARD_H #include "nest/protocol.h" +#include "sysdep/linux/wireguard.h" struct wg_config { struct proto_config c; const char *ifname; + const char *socket_path; + const char *private_key; + u16 listen_port; - struct peer { - const char *pubkey; + struct peer_config { + const char *public_key; + u16 listen_port; ip_addr endpoint; u16 remote_port; - struct net_addr allowed_ips; + struct net_addr allowedip; } peer; }; struct wg_proto { struct proto p; struct iface *iface; + wg_key private_key; + wg_device *dev; + + struct peer { + wg_key public_key; + } peer; }; struct wg_channel_config { |