31#ifndef _DHCP_CLIENT_MISC_H
32#define _DHCP_CLIENT_MISC_H
47void dhcpClientTick(DhcpClientContext *context);
48void dhcpClientLinkChangeEvent(DhcpClientContext *context);
50error_t dhcpClientSendDiscover(DhcpClientContext *context);
51error_t dhcpClientSendRequest(DhcpClientContext *context);
52error_t dhcpClientSendDecline(DhcpClientContext *context);
53error_t dhcpClientSendRelease(DhcpClientContext *context);
55void dhcpClientProcessMessage(NetInterface *interface,
57 const NetBuffer *buffer,
size_t offset,
const NetRxAncillary *ancillary,
60void dhcpClientParseOffer(DhcpClientContext *context,
61 const DhcpMessage *message,
size_t length);
63void dhcpClientParseAck(DhcpClientContext *context,
64 const DhcpMessage *message,
size_t length);
66void dhcpClientParseNak(DhcpClientContext *context,
67 const DhcpMessage *message,
size_t length);
69void dhcpClientCheckTimeout(DhcpClientContext *context);
71uint16_t dhcpClientComputeElapsedTime(DhcpClientContext *context);
73void dhcpClientChangeState(DhcpClientContext *context,
76void dhcpClientResetConfig(DhcpClientContext *context);
77void dhcpClientDumpConfig(DhcpClientContext *context);
DHCP client (Dynamic Host Configuration Protocol)
DhcpState
DHCP FSM states.
Definition dhcp_client.h:158
error_t
Error codes.
Definition error.h:43
uint32_t systime_t
System time.
Definition os_port_none.h:90
Structure describing a buffer that spans multiple chunks.
Definition net_mem.h:89