toe_beans/v4/client/
mod.rs

1mod client;
2mod config;
3
4pub use client::*;
5pub use config::*;
6
7/// The standard port for dhcpv4 clients defined in the RFC.
8pub const CLIENT_PORT: u16 = 68;
9/// This is an arbitrary port number above 1024 that can be used when testing the client.
10/// Port numbers below 1024 are privileged ports that require admin access to bind to.
11/// See: <https://www.w3.org/Daemon/User/Installation/PrivilegedPorts.html>
12pub const TEST_CLIENT_PORT: u16 = 8068;
13/// Resolves to TEST_PORT for debug builds and PORT for release builds
14pub const RESOLVED_CLIENT_PORT: u16 = if cfg!(debug_assertions) {
15    TEST_CLIENT_PORT
16} else {
17    CLIENT_PORT
18};