Expand description
Used to send/receive Messages to/from a DHCP client.
Structs§
- Config
- Representation of a
toe-beans.tomlfile. Used by the Server. - Lease
Time - The time, in seconds, before a lease expires. A lower value will increase dhcp traffic between client and server. A higher value will increase the chances that all ip addresses are assigned.
- Leases
- Used to manage the dynamic collection of IP addresses that the server leases.
- Server
- Ties together a Config, Socket, and Leases in order to handle incoming Client Messages, and construct server-specific response Messages.
Constants§
- RESOLVED_
SERVER_ PORT - Resolves to
TEST_SERVER_PORTfor debug builds andSERVER_PORTfor release builds - SERVER_
PORT - The standard port for dhcpv4 servers defined in the RFC.
- TEST_
SERVER_ PORT - 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