|
SatCat5
|
Dynamic Host Configuration Protocol (DHCP) client and server.
Dynamic Host Configuration Protocol is used to automatically assign or request IP addresses for hosts on an IPv4 subnet. DHCP servers maintain a pool of free and assigned addresses; DHCP clients contact the server to request an address.
To use the DHCP client:
To use the DHCP server:
See also: IETF RFC2131: https://www.rfc-editor.org/rfc/rfc2131
Definition in file ip_dhcp.h.
#include <satcat5/eth_arp.h>#include <satcat5/net_core.h>#include <satcat5/ip_core.h>#include <satcat5/polling.h>#include <satcat5/udp_core.h>Go to the source code of this file.
Classes | |
| struct | satcat5::ip::DhcpId |
| A unique client-identifier. More... | |
| class | satcat5::ip::DhcpClient |
| DHCP Client for leasing an IP address from a server. More... | |
| struct | satcat5::ip::DhcpAddress |
| One address in the pool allocated to a DhcpServer. More... | |
| class | satcat5::ip::DhcpPool |
| Generic container for a group of DhcpAddress objects. More... | |
| class | satcat5::ip::DhcpPoolStatic< SIZE > |
| The simplest possible implementation of DhcpPool, supporting a contiguous range of IP-addresses from BASE to BASE+SIZE-1. More... | |
| class | satcat5::ip::DhcpServer |
| DHCP Server for managing leases to other clients. More... | |
Macros | |
| #define | SATCAT5_DHCP_MAX_ID_LEN 62 |
Enumerations | |
| enum class | satcat5::ip::DhcpState { INIT , SELECTING , TESTING , REQUESTING , BOUND , RENEWING , REBINDING , INFORMING , STOPPED } |
| DHCP protocol state. More... | |
|
strong |