toe-beans 0.10.0

DHCP library, client, and server
Documentation
mod config;
mod leases;
mod server;

pub use config::*;
pub use leases::*;
pub use server::*;

/// The standard port for dhcpv4 servers defined in the RFC.
pub const SERVER_PORT: u16 = 67;
/// This is an arbitrary port number above 1024 that can be used when testing the server.
/// Port numbers below 1024 are privileged ports that require root access to bind to.
/// See: <https://www.w3.org/Daemon/User/Installation/PrivilegedPorts.html>
pub const TEST_SERVER_PORT: u16 = 8067;
/// Resolves to `TEST_SERVER_PORT` for debug builds and `SERVER_PORT` for release builds
pub const RESOLVED_SERVER_PORT: u16 = if cfg!(debug_assertions) {
    TEST_SERVER_PORT
} else {
    SERVER_PORT
};