diff options
author | Tushar Pankaj <tushar.s.pankaj@gmail.com> | 2018-11-07 10:49:50 -0600 |
---|---|---|
committer | Tushar Pankaj <tushar.s.pankaj@gmail.com> | 2018-11-07 10:49:50 -0600 |
commit | 3bd7dffda7db8e9bf4cd0dad2455328508efb9b2 (patch) | |
tree | 8563fdea30cfd3b92d31c57e51cc02e905b05127 /protocol.h | |
parent | Untested first draft of protocol.capnp (diff) | |
download | wg-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 '')
-rw-r--r-- | protocol.h | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/protocol.h b/protocol.h deleted file mode 100644 index 80b2bd3..0000000 --- a/protocol.h +++ /dev/null @@ -1,28 +0,0 @@ -/* SPDX-License-Identifier: MIT */ -/* - * Copyright (C) 2018 Wireguard LLC - */ - -#ifndef PROTOCOL_H -#define PROTOCOL_H - -#include <stdint.h> - -/* possible types of requests the client can make */ -enum wg_client_request = { WG_REQUEST_SIMPLE = 0 }; - -/* client request message */ -struct wg_client_message { - uint32_t request; /* what type of request to make */ -}; - -/* server request message */ -struct wg_server_message { - uint32_t leased_ipv4; /* dynamic IPv4 leased to client */ - uint32_t leased_ipv4_cidr; /* CIDR of dynamic IPv4 leased to client */ - uint32_t lease_timeout; /* activity timeout for the IP lease in seconds */ - uint32_t route; /* route for client */ - uint32_t route_cidr; /* CIDR of route for client */ -}; - -#endif |