|
|
#define | DHCP_SERV_MAX_INTF (4) |
| |
|
| |
|
#define | DHCP_OFFER_DURATION (2 * TICKS_PER_SECOND) |
| |
|
| |
|
#define | DHCP_SERV_MAX_HOSTNAME_LEN (32) |
| |
|
| |
|
#define | LEASE_POOL_SIZE 150 |
| |
|
| |
|
#define | DHCPD_STARTING_ADDRESS 0xC0A80184 |
| |
|
| |
#include< dhcpd.h>
Adding a DHCP server will enable your NetBurner device to serve IPv4 addresses. This can be useful in circumstances such as direct connections between 2 devices.
◆ AddStandardDHCPServer()
#include <dhcpd.h>
Starts a standard allocator DHCP server.
Also checks for existing DHCP servers on the specified network interface.
- Parameters
-
| intf | The interface to use. If no parameter is specified the default value is 0 which will use the first system interface. |
| startAddr | The starting IP address. If no parameter is specified the default range of 192.168.1.100 to 192.168.1.249 will be used. |
- Return values
-
| true | Success |
| false | A server already exists or error starting the server |