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@93:580fc113d9e9, 2018-12-02 (annotated)
- Committer:
- andrewboyson
- Date:
- Sun Dec 02 18:40:35 2018 +0000
- Revision:
- 93:580fc113d9e9
- Parent:
- 61:aad055f1b0d1
Removed ClockTick and replaced with ms timer.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
andrewboyson | 61:aad055f1b0d1 | 1 | #include <stdint.h> |
andrewboyson | 61:aad055f1b0d1 | 2 | #include <stdbool.h> |
andrewboyson | 61:aad055f1b0d1 | 3 | |
andrewboyson | 37:793b39683406 | 4 | extern bool DhcpTrace; |
andrewboyson | 37:793b39683406 | 5 | |
andrewboyson | 93:580fc113d9e9 | 6 | extern uint32_t DhcpGetElapsedLife(void); |
andrewboyson | 29:39277bf2003d | 7 | |
andrewboyson | 10:f0854784e960 | 8 | extern uint32_t DhcpLeaseTime; |
andrewboyson | 10:f0854784e960 | 9 | extern uint32_t DhcpServer; |
andrewboyson | 10:f0854784e960 | 10 | extern uint32_t DhcpRouter; |
andrewboyson | 10:f0854784e960 | 11 | extern uint32_t DhcpSubnetMask; |
andrewboyson | 10:f0854784e960 | 12 | extern uint32_t DhcpNtp; |
andrewboyson | 10:f0854784e960 | 13 | extern uint32_t DhcpRenewalT1; |
andrewboyson | 10:f0854784e960 | 14 | extern uint32_t DhcpRenewalT2; |
andrewboyson | 10:f0854784e960 | 15 | extern uint32_t DhcpBroadcastIp; |
andrewboyson | 10:f0854784e960 | 16 | extern uint32_t DhcpLocalIp; |
andrewboyson | 10:f0854784e960 | 17 | extern uint32_t DhcpDnsServer; |
andrewboyson | 10:f0854784e960 | 18 | extern char DhcpDomainName[]; |
andrewboyson | 10:f0854784e960 | 19 | extern char DhcpHostName[]; |
andrewboyson | 10:f0854784e960 | 20 | |
andrewboyson | 44:83ce5ace337b | 21 | extern bool DhcpIpNeedsToBeRouted(uint32_t ip); |
andrewboyson | 44:83ce5ace337b | 22 | |
andrewboyson | 59:e0e556c8bd46 | 23 | extern int DhcpHandleResponse(void (*traceback)(void), int sizeRx, void* pPacketRx, int* pSizeTx, void* pPacketTx); |
andrewboyson | 10:f0854784e960 | 24 | extern int DhcpPollForRequestToSend(void* pPacket, int* pSize); |
andrewboyson | 10:f0854784e960 | 25 | |
andrewboyson | 10:f0854784e960 | 26 | #define DHCP_SERVER_PORT 67 |
andrewboyson | 10:f0854784e960 | 27 | #define DHCP_CLIENT_PORT 68 |