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@43:bc028d5a6424, 2017-10-19 (annotated)
- Committer:
- andrewboyson
- Date:
- Thu Oct 19 20:56:58 2017 +0000
- Revision:
- 43:bc028d5a6424
- Parent:
- 37:793b39683406
- Child:
- 44:83ce5ace337b
Added verbose option to trace
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 | 37:793b39683406 | 18 | extern int DhcpHandleResponse(void (*traceback)(void), int* pSize, void* pPacket); |
andrewboyson | 10:f0854784e960 | 19 | extern int DhcpPollForRequestToSend(void* pPacket, int* pSize); |
andrewboyson | 43:bc028d5a6424 | 20 | extern void DhcpMain(); |
andrewboyson | 10:f0854784e960 | 21 | |
andrewboyson | 10:f0854784e960 | 22 | #define DHCP_SERVER_PORT 67 |
andrewboyson | 10:f0854784e960 | 23 | #define DHCP_CLIENT_PORT 68 |