summaryrefslogtreecommitdiffhomepage
path: root/tunnel/src/main/proto/libwg.proto
diff options
context:
space:
mode:
Diffstat (limited to 'tunnel/src/main/proto/libwg.proto')
-rw-r--r--tunnel/src/main/proto/libwg.proto13
1 files changed, 11 insertions, 2 deletions
diff --git a/tunnel/src/main/proto/libwg.proto b/tunnel/src/main/proto/libwg.proto
index 591e897f..ab6b2659 100644
--- a/tunnel/src/main/proto/libwg.proto
+++ b/tunnel/src/main/proto/libwg.proto
@@ -1,5 +1,7 @@
syntax = "proto3";
+import "google/protobuf/duration.proto";
+
option java_multiple_files = true;
option java_package = 'com.wireguard.android.backend.gen';
option java_outer_classname = "LibwgProto";
@@ -103,9 +105,16 @@ message IpcSetResponse {
Error error = 1;
}
+message Lease {
+ InetAddress address = 1;
+ google.protobuf.Duration preferred_lifetime = 2;
+ google.protobuf.Duration valid_lifetime = 3;
+}
+
message DhcpRequest {
}
-message DhcpResponse {
- Error error = 1;
+message DhcpResponse {
+ Error error = 1;
+ repeated Lease leases = 2;
}