microsoft/openvmm

Public

mirrored from https://github.com/microsoft/openvmmAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
copilot/apply-async-process-wait-functionality

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

openhcl/diag_proto/src/lib.rs

25lines · modecode

1// Copyright (c) Microsoft Corporation.
2// Licensed under the MIT License.
3
4//! The Underhill diagnostics server protocol definitions.
5
6#![expect(missing_docs)]
7#![forbid(unsafe_code)]
8#![expect(clippy::allow_attributes)]
9
10// Crates used by generated code. Reference them explicitly to ensure that
11// automated tools do not remove them.
12use inspect as _;
13use mesh_rpc as _;
14use prost as _;
15
16include!(concat!(env!("OUT_DIR"), "/diag.rs"));
17
18/// The AF_VSOCK port number the server runs on.
19///
20/// Happens to be the address of Bag End.
21pub const VSOCK_CONTROL_PORT: u32 = 1;
22pub const VSOCK_DATA_PORT: u32 = 2;
23
24/// The maximum length of a file line.
25pub const FILE_LINE_MAX: usize = 2048;
26