aboutsummaryrefslogtreecommitdiffstats
path: root/protocol.capnp
diff options
context:
space:
mode:
authorTushar Pankaj <tushar.s.pankaj@gmail.com>2018-11-07 10:49:50 -0600
committerTushar Pankaj <tushar.s.pankaj@gmail.com>2018-11-07 10:49:50 -0600
commit3bd7dffda7db8e9bf4cd0dad2455328508efb9b2 (patch)
tree8563fdea30cfd3b92d31c57e51cc02e905b05127 /protocol.capnp
parentUntested first draft of protocol.capnp (diff)
downloadwg-dynamic-3bd7dffda7db8e9bf4cd0dad2455328508efb9b2.tar.xz
wg-dynamic-3bd7dffda7db8e9bf4cd0dad2455328508efb9b2.zip
Make protocol.capnp.o compile
Signed-off-by: Tushar Pankaj <tushar.s.pankaj@gmail.com>
Diffstat (limited to 'protocol.capnp')
-rw-r--r--protocol.capnp20
1 files changed, 10 insertions, 10 deletions
diff --git a/protocol.capnp b/protocol.capnp
index 7450702..64463e9 100644
--- a/protocol.capnp
+++ b/protocol.capnp
@@ -3,22 +3,22 @@
# Copyright (C) 2018 Wireguard LLC
#
-@0xed77208fb3340cc1
+@0xed77208fb3340cc1;
# client request message
-struct wg_client_msg {
- request @0 :wg_client_request_type;
+struct WgClientMsg {
+ request @0 :WgClientRequestType;
- enum wg_client_request_type {
- WG_REQUEST_SIMPLE @0;
+ enum WgClientRequestType {
+ 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
+struct WgServerSimpleMsg {
+ leasedIpv4 @0 :UInt32; # dynamic IPv4 leased to client
+ leasedIpv4Cidr @1 :UInt32; # CIDR of dynamic IPv4 leased to client
+ leaseTimeout @2 :UInt32; # activity timeout for the IP lease in seconds
route @3 :UInt32; # route for client
- route @4 :Uint32; # CIDR of route for client
+ routeCidr @4 :UInt32; # CIDR of route for client
}