summaryrefslogtreecommitdiff
path: root/nest
diff options
context:
space:
mode:
authorMikael Magnusson <mikma@users.sourceforge.net>2019-02-28 00:44:40 +0100
committerMikael Magnusson <mikma@users.sourceforge.net>2023-12-04 23:41:05 +0100
commitc61130b81147200c319931ae15dc4195a9a18bbc (patch)
tree284bb5cd6bfc3695ab4300775abc2850646a0781 /nest
parent293aa6dc8d1927d2a9809c2a88954795a56b1188 (diff)
Wireguard: Initial commit
Use 51820 (default wireguard port) as default tunnel type.
Diffstat (limited to 'nest')
-rw-r--r--nest/protocol.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/nest/protocol.h b/nest/protocol.h
index c87d3814..ee55d316 100644
--- a/nest/protocol.h
+++ b/nest/protocol.h
@@ -57,6 +57,7 @@ enum protocol_class {
PROTOCOL_RIP,
PROTOCOL_RPKI,
PROTOCOL_STATIC,
+ PROTOCOL_WG,
PROTOCOL__MAX
};
@@ -107,7 +108,8 @@ void protos_dump_all(void);
extern struct protocol
proto_device, proto_radv, proto_rip, proto_static, proto_mrt,
proto_ospf, proto_perf, proto_l3vpn, proto_aggregator,
- proto_pipe, proto_bgp, proto_bmp, proto_bfd, proto_babel, proto_rpki;
+ proto_pipe, proto_bgp, proto_bmp, proto_bfd, proto_babel, proto_rpki,
+ proto_wireguard;
/*
* Routing Protocol Instance
@@ -483,6 +485,7 @@ struct channel_class {
extern const struct channel_class channel_basic;
extern const struct channel_class channel_bgp;
+extern const struct channel_class channel_wg;
struct channel_config {
node n;