Define interface for reporting active ports in the guest
Bug: 340126051
Test: TH
Change-Id: Ieccbdef0c489f8db061aa10fdc239e4f42157686
diff --git a/libs/debian_service/proto/DebianService.proto b/libs/debian_service/proto/DebianService.proto
index a887bf2..bf05ebe 100644
--- a/libs/debian_service/proto/DebianService.proto
+++ b/libs/debian_service/proto/DebianService.proto
@@ -22,6 +22,7 @@
option java_multiple_files = true;
service DebianService {
+ rpc ReportVmActivePorts (ReportVmActivePortsRequest) returns (ReportVmActivePortsResponse) {}
rpc ReportVmIpAddr (IpAddr) returns (ReportVmIpAddrResponse) {}
rpc OpenForwardingRequestQueue (QueueOpeningRequest) returns (stream ForwardingRequestItem) {}
}
@@ -38,6 +39,14 @@
bool success = 1;
}
+message ReportVmActivePortsRequest {
+ repeated int32 ports = 1;
+}
+
+message ReportVmActivePortsResponse {
+ bool success = 1;
+}
+
message ForwardingRequestItem {
int32 guest_tcp_port = 1;
int32 vsock_port = 2;