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
Diff: udp/dhcp.h
- Revision:
- 10:f0854784e960
- Child:
- 29:39277bf2003d
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/udp/dhcp.h Sun Apr 16 14:21:55 2017 +0000 @@ -0,0 +1,19 @@ +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 int DhcpHandleResponse(int* pSize, void* pPacket); +extern int DhcpPollForRequestToSend(void* pPacket, int* pSize); +extern void DhcpTick(); + +#define DHCP_SERVER_PORT 67 +#define DHCP_CLIENT_PORT 68 \ No newline at end of file