Skip to main content

microsandbox_network/
lib.rs

1//! `microsandbox-network` provides the smoltcp in-process networking engine
2//! for sandbox network isolation and policy enforcement.
3
4// New lints introduced in rustc 1.95 fire on existing code; addressing
5// them is out of scope for the current change and tracked separately.
6#![allow(
7    clippy::useless_conversion,
8    clippy::identity_op,
9    clippy::unnecessary_cast,
10    clippy::needless_update,
11    clippy::manual_c_str_literals
12)]
13
14pub mod backend;
15pub mod builder;
16pub mod config;
17pub mod conn;
18pub mod device;
19pub mod dns;
20pub mod icmp_relay;
21pub mod network;
22pub mod policy;
23pub mod proxy;
24pub mod publisher;
25pub mod secrets;
26pub mod shared;
27pub mod stack;
28pub mod tls;
29pub mod udp_relay;
30
31/// Static hostname the guest uses to reach the sandbox host.
32///
33/// The host-side DNS interceptor matches guest queries against this
34/// name, and agentd writes the same name into `/etc/hosts`.
35pub(crate) const HOST_ALIAS: &str = "host.microsandbox.internal";