|
NetBurner 3.5.8
PDF Version |
Namespaces | |
| namespace | DHCP |
| DHCP Namespace. | |
Macros | |
| #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 |
| | |
Functions | |
| bool | AddStandardDHCPServer (int intf=0, IPADDR4 startAddr=IPADDR4::NullIP()) |
| Starts a standard allocator DHCP server. | |
#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.
| bool AddStandardDHCPServer | ( | int | intf = 0, |
| IPADDR4 | startAddr = IPADDR4::NullIP() ) |
#include <dhcpd.h>
Starts a standard allocator DHCP server.
Also checks for existing DHCP servers on the specified network interface.
| 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. |
| true | Success |
| false | A server already exists or error starting the server |