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@59:e0e556c8bd46, 2017-12-14 (annotated)
- Committer:
- andrewboyson
- Date:
- Thu Dec 14 20:55:40 2017 +0000
- Revision:
- 59:e0e556c8bd46
- Parent:
- 44:83ce5ace337b
- Child:
- 61:aad055f1b0d1
Added buffer length to help avoid over runs
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
andrewboyson | 37:793b39683406 | 1 | extern bool DhcpTrace; |
andrewboyson | 37:793b39683406 | 2 | |
andrewboyson | 29:39277bf2003d | 3 | extern uint32_t DhcpElapsedTime; |
andrewboyson | 29:39277bf2003d | 4 | |
andrewboyson | 10:f0854784e960 | 5 | extern uint32_t DhcpLeaseTime; |
andrewboyson | 10:f0854784e960 | 6 | extern uint32_t DhcpServer; |
andrewboyson | 10:f0854784e960 | 7 | extern uint32_t DhcpRouter; |
andrewboyson | 10:f0854784e960 | 8 | extern uint32_t DhcpSubnetMask; |
andrewboyson | 10:f0854784e960 | 9 | extern uint32_t DhcpNtp; |
andrewboyson | 10:f0854784e960 | 10 | extern uint32_t DhcpRenewalT1; |
andrewboyson | 10:f0854784e960 | 11 | extern uint32_t DhcpRenewalT2; |
andrewboyson | 10:f0854784e960 | 12 | extern uint32_t DhcpBroadcastIp; |
andrewboyson | 10:f0854784e960 | 13 | extern uint32_t DhcpLocalIp; |
andrewboyson | 10:f0854784e960 | 14 | extern uint32_t DhcpDnsServer; |
andrewboyson | 10:f0854784e960 | 15 | extern char DhcpDomainName[]; |
andrewboyson | 10:f0854784e960 | 16 | extern char DhcpHostName[]; |
andrewboyson | 10:f0854784e960 | 17 | |
andrewboyson | 44:83ce5ace337b | 18 | extern bool DhcpIpNeedsToBeRouted(uint32_t ip); |
andrewboyson | 44:83ce5ace337b | 19 | |
andrewboyson | 59:e0e556c8bd46 | 20 | extern int DhcpHandleResponse(void (*traceback)(void), int sizeRx, void* pPacketRx, int* pSizeTx, void* pPacketTx); |
andrewboyson | 10:f0854784e960 | 21 | extern int DhcpPollForRequestToSend(void* pPacket, int* pSize); |
andrewboyson | 43:bc028d5a6424 | 22 | extern void DhcpMain(); |
andrewboyson | 10:f0854784e960 | 23 | |
andrewboyson | 10:f0854784e960 | 24 | #define DHCP_SERVER_PORT 67 |
andrewboyson | 10:f0854784e960 | 25 | #define DHCP_CLIENT_PORT 68 |