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
14mod addr;
15
16pub mod backend;
17pub mod builder;
18pub mod config;
19pub mod conn;
20pub mod device;
21pub mod dns;
22pub mod icmp_relay;
23pub mod network;
24pub mod policy;
25pub mod proxy;
26pub mod publisher;
27pub mod secrets;
28pub mod shared;
29pub mod stack;
30pub mod tls;
31pub mod udp_relay;
32
33/// Static hostname the guest uses to reach the sandbox host.
34///
35/// The host-side DNS interceptor matches guest queries against this
36/// name, and agentd writes the same name into `/etc/hosts`.
37pub(crate) const HOST_ALIAS: &str = "host.microsandbox.internal";