NetBurner 3.5.0
PDF Version
 
dhcpd.h File Reference

NetBurner DHCP Server. More...

#include <predef.h>
#include <constants.h>
#include <buffers.h>
#include <nettypes.h>

Go to the source code of this file.

Classes

struct  DHCP::DhcpLeaseRequest
 Lease Request. More...
 
struct  DHCP::DhcpLeaseData
 Lease Data. More...
 
struct  DHCP::DhcpInfo
 DHCP Info. More...
 
class  DHCP::LeaseAllocator
 Base class/interface for lease allocators for the DHCP server. More...
 
class  DHCP::SingleAllocator
 Stripped down allocator Fails to conform to many standard behaviors, but shows the basics of what needs to be implemented. More...
 
class  DHCP::BlockAllocator
 Basic allocator that handles multiple leases in a contiguous IP block. More...
 
class  DHCP::MacPrefixAllocator
 Derived from BlockAllocator Has the ability to whitelist/blacklist certain mac address ranges based on a mask. Useful for allocating addresses based on device manufacturer. More...
 
class  DHCP::Server
 DHCP Server class Requires a lease allocator to be added in order to function. More...
 

Namespaces

namespace  DHCP
 DHCP Namespace.
 

Typedefs

typedef enum DHCP::LeaseState DHCP::LeaseState_t
 Lease State.
 

Enumerations

enum  DHCP::LeaseState {
  DHCP::LEASE_OPEN = 0x0 , DHCP::LEASE_OFFERED = 0x1 , DHCP::LEASE_TAKEN = 0x2 , DHCP::LEASE_STATIC = 0x3 ,
  DHCP::ARP_CONFLICT = 0x4
}
 Lease State. More...
 

Functions

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

Detailed Description

NetBurner DHCP Server.

The DHCPD library provides a DHCP server daemon such that the NetBurner module can provide leases to other devices on the same network. The standard reference implementation also implements a discovery mechanism which will only enable the server if no other server is present when initiated.