31#ifndef _DHCP_SERVER_MISC_H
32#define _DHCP_SERVER_MISC_H
47void dhcpServerTick(DhcpServerContext *context);
49void dhcpServerProcessMessage(NetInterface *interface,
51 const NetBuffer *buffer,
size_t offset,
const NetRxAncillary *ancillary,
54void dhcpServerParseDiscover(DhcpServerContext *context,
55 const DhcpMessage *message,
size_t length);
57void dhcpServerParseRequest(DhcpServerContext *context,
58 const DhcpMessage *message,
size_t length);
60void dhcpServerParseDecline(DhcpServerContext *context,
61 const DhcpMessage *message,
size_t length);
63void dhcpServerParseRelease(DhcpServerContext *context,
64 const DhcpMessage *message,
size_t length);
66void dhcpServerParseInform(DhcpServerContext *context,
67 const DhcpMessage *message,
size_t length);
69error_t dhcpServerSendReply(DhcpServerContext *context, uint8_t type,
70 Ipv4Addr yourIpAddr,
const DhcpMessage *request,
size_t requestLen);
75 const MacAddr *macAddr);
80error_t dhcpServerGetNextIpAddr(DhcpServerContext *context,
Ipv4Addr *ipAddr);
DHCP server (Dynamic Host Configuration Protocol)
error_t
Error codes.
Definition error.h:43
uint32_t Ipv4Addr
IPv4 network address.
Definition ipv4.h:267
uint32_t systime_t
System time.
Definition os_port_none.h:90
DHCP binding.
Definition dhcp_server.h:112
Structure describing a buffer that spans multiple chunks.
Definition net_mem.h:89