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

Revision:
115:5c003909bcf3
Parent:
93:580fc113d9e9
Child:
116:60521b29e4c9
diff -r 13fc2c25d105 -r 5c003909bcf3 udp/dhcp/dhcp.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/udp/dhcp/dhcp.h	Wed Jan 23 15:42:35 2019 +0000
@@ -0,0 +1,27 @@
+#include <stdint.h>
+#include <stdbool.h>
+
+extern bool DhcpTrace;
+
+extern uint32_t DhcpGetElapsedLife(void);
+
+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);
+
+#define DHCP_SERVER_PORT 67
+#define DHCP_CLIENT_PORT 68
\ No newline at end of file