aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTushar Pankaj <tushar.s.pankaj@gmail.com>2018-11-07 10:38:29 -0600
committerTushar Pankaj <tushar.s.pankaj@gmail.com>2018-11-07 10:38:29 -0600
commit14e708783433816fd6cead46e2aa823ab8e41294 (patch)
tree08b492585f46a13188e06ea0f40a28a2955d25c8
parentExclude capnproto from clang-format (diff)
downloadwg-dynamic-14e708783433816fd6cead46e2aa823ab8e41294.tar.xz
wg-dynamic-14e708783433816fd6cead46e2aa823ab8e41294.zip
Untested first draft of protocol.capnp
Signed-off-by: Tushar Pankaj <tushar.s.pankaj@gmail.com>
-rw-r--r--protocol.capnp24
1 files changed, 24 insertions, 0 deletions
diff --git a/protocol.capnp b/protocol.capnp
new file mode 100644
index 0000000..7450702
--- /dev/null
+++ b/protocol.capnp
@@ -0,0 +1,24 @@
+# SPDX-License-Identifier: MIT
+#
+# Copyright (C) 2018 Wireguard LLC
+#
+
+@0xed77208fb3340cc1
+
+# client request message
+struct wg_client_msg {
+ request @0 :wg_client_request_type;
+
+ enum wg_client_request_type {
+ WG_REQUEST_SIMPLE @0;
+ }
+}
+
+# server response message
+struct wg_server_simple_msg {
+ leased_ipv4 @0 :UInt32; # dynamic IPv4 leased to client
+ leased_ipv4_cidr @1 :UInt32; # CIDR of dynamic IPv4 leased to client
+ lease_timeout @2 :UInt32; # activity timeout for the IP lease in seconds
+ route @3 :UInt32; # route for client
+ route @4 :Uint32; # CIDR of route for client
+}