A stack which works with or without an Mbed os library. Provides IPv4 or IPv6 with a full 1500 byte buffer.
Dependents: oldheating gps motorhome heating
udp/dhcp.h
- Committer:
- andrewboyson
- Date:
- 2017-12-14
- Revision:
- 59:e0e556c8bd46
- Parent:
- 44:83ce5ace337b
- Child:
- 61:aad055f1b0d1
File content as of revision 59:e0e556c8bd46:
extern bool DhcpTrace; extern uint32_t DhcpElapsedTime; extern uint32_t DhcpLeaseTime; extern uint32_t DhcpServer; extern uint32_t DhcpRouter; extern uint32_t DhcpSubnetMask; extern uint32_t DhcpNtp; extern uint32_t DhcpRenewalT1; extern uint32_t DhcpRenewalT2; extern uint32_t DhcpBroadcastIp; extern uint32_t DhcpLocalIp; extern uint32_t DhcpDnsServer; extern char DhcpDomainName[]; extern char DhcpHostName[]; extern bool DhcpIpNeedsToBeRouted(uint32_t ip); extern int DhcpHandleResponse(void (*traceback)(void), int sizeRx, void* pPacketRx, int* pSizeTx, void* pPacketTx); extern int DhcpPollForRequestToSend(void* pPacket, int* pSize); extern void DhcpMain(); #define DHCP_SERVER_PORT 67 #define DHCP_CLIENT_PORT 68