summaryrefslogtreecommitdiffhomepage
path: root/tunnel/src/main/proto/libwg.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-10-19 22:54:24 +0200
commitda6c8751e2496754bcf7ef6b8f3329f7a0354826 (patch)
treef0554a5eddb72cfbe483428586b8079b3439d587 /tunnel/src/main/proto/libwg.proto
parentb6edc801c6eaa57549f29947880c301e166af8cc (diff)
WIP: tunnel: implement gRPC based wgSetConfig
Diffstat (limited to 'tunnel/src/main/proto/libwg.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;