NetBurner 3.5.0
PDF Version
 
DHCP Server

Namespaces

namespace  DHCP
 DHCP Namespace.
 

Functions

bool AddStandardDHCPServer (int intf=0, IPADDR4 startAddr=IPADDR4::NullIP())
 Starts a standard allocator DHCP server.
 

Detailed Description

#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.

Function Documentation

◆ AddStandardDHCPServer()

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.

Parameters
intfThe interface to use. If no parameter is specified the default value is 0 which will use the first system interface.
startAddrThe 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
trueSuccess
falseA server already exists or error starting the server