capsid-protocol 0.1.0-alpha.1

Versioned, size-bounded messages between the Capsid host and its guest agent.
Documentation
macro_rules! host {
    ($suffix:literal) => {
        concat!("172.30.0.1", $suffix)
    };
}

pub const HOST_ADDRESS: &str = host!("");

pub const HOST_CIDR: &str = host!("/30");

pub const GUEST_ADDRESS: &str = "172.30.0.2";

pub const HOST_MAC: &str = "02:fc:00:00:00:01";

pub const GUEST_MAC: &str = "02:fc:00:00:00:02";

pub const DNS_ADDRESS: &str = host!(":53");

pub const PROXY_ADDRESS: &str = host!(":3128");

pub const PRIVATE_GATEWAY_ADDRESS: &str = host!(":1054");

pub const RESOLV_CONF: &str = concat!("nameserver ", host!(""), "\noptions timeout:2 attempts:2\n");