microsoft/openvmm
Publicmirrored fromhttps://github.com/microsoft/openvmmAvailable
openhcl/diag_proto/src/lib.rs
24lines · 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 | |
| 9 | // Crates used by generated code. Reference them explicitly to ensure that |
| 10 | // automated tools do not remove them. |
| 11 | use inspect as _; |
| 12 | use mesh_rpc as _; |
| 13 | use prost as _; |
| 14 | |
| 15 | include!(concat!(env!("OUT_DIR"), "/diag.rs")); |
| 16 | |
| 17 | /// The AF_VSOCK port number the server runs on. |
| 18 | /// |
| 19 | /// Happens to be the address of Bag End. |
| 20 | pub const VSOCK_CONTROL_PORT: u32 = 1; |
| 21 | pub const VSOCK_DATA_PORT: u32 = 2; |
| 22 | |
| 23 | /// The maximum length of a file line. |
| 24 | pub const FILE_LINE_MAX: usize = 2048; |
| 25 | |