aboutsummaryrefslogtreecommitdiffstats
path: root/protocol.capnp
blob: 64463e921dfdacecca327b8ecba7cf893e584c43 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# SPDX-License-Identifier: MIT
#
# Copyright (C) 2018 Wireguard LLC
#

@0xed77208fb3340cc1;

# client request message
struct WgClientMsg {
       request @0 :WgClientRequestType;
       
       enum WgClientRequestType {
            simple @0;
       }
}

# server response message
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
       routeCidr @4 :UInt32; # CIDR of route for client
}