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/dhcp.h@116:60521b29e4c9, 2019-01-25 (annotated)
- Committer:
- andrewboyson
- Date:
- Fri Jan 25 17:37:51 2019 +0000
- Revision:
- 116:60521b29e4c9
- Parent:
- 115:5c003909bcf3
Added backoff delay to DHCP
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 | 116:60521b29e4c9 | 9 | extern uint32_t DhcpServerIp; |
andrewboyson | 116:60521b29e4c9 | 10 | extern uint32_t DhcpRouterIp; |
andrewboyson | 10:f0854784e960 | 11 | extern uint32_t DhcpSubnetMask; |
andrewboyson | 116:60521b29e4c9 | 12 | extern uint32_t DhcpNtpIp; |
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 | 116:60521b29e4c9 | 17 | extern uint32_t DhcpDnsServerIp; |
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 |