summaryrefslogtreecommitdiffhomepage
path: root/tunnel/src/main/proto
diff options
context:
space:
mode:
authorMikael Magnusson <mikma@users.sourceforge.net>2023-05-24 22:48:37 +0200
committerMikael Magnusson <mikma@users.sourceforge.net>2023-06-01 21:08:03 +0200
commitf5a5d9ff45e689c573d2144c2c0880218baef6ac (patch)
treec6d93205712bdbe2b094fba0ca8bb6bdaa7b37a8 /tunnel/src/main/proto
parent48f3b6e67c8a9f6018455873721fb4fef09489fb (diff)
WIP: tunnel: implement gRPC based wgSetConfig
Diffstat (limited to 'tunnel/src/main/proto')
-rw-r--r--tunnel/src/main/proto/libwg.proto12
1 files changed, 12 insertions, 0 deletions
diff --git a/tunnel/src/main/proto/libwg.proto b/tunnel/src/main/proto/libwg.proto
index e0975f60..3195690d 100644
--- a/tunnel/src/main/proto/libwg.proto
+++ b/tunnel/src/main/proto/libwg.proto
@@ -16,9 +16,12 @@ service Libwg {
rpc StartHttpProxy(StartHttpProxyRequest) returns (StartHttpProxyResponse);
rpc StopHttpProxy(StopHttpProxyRequest) returns (StopHttpProxyResponse);
rpc Reverse(stream ReverseRequest) returns (stream ReverseResponse);
+ rpc IpcSet(IpcSetRequest) returns (IpcSetResponse);
rpc Dhcp(DhcpRequest) returns (DhcpResponse);
}
+message TunnelHandle { int32 handle = 1; }
+
message Error {
enum Code {
NO_ERROR = 0;
@@ -96,6 +99,15 @@ message GetConnectionOwnerUidResponse {
string package = 2; // context.getPackageManager().getNameForUid()
}
+message IpcSetRequest {
+ TunnelHandle tunnel = 1;
+ string config = 2;
+}
+
+message IpcSetResponse {
+ Error error = 1;
+}
+
message Lease {
InetAddress address = 1;
google.protobuf.Duration preferred_lifetime = 2;