DHCP.c File Reference
Detailed Description
Dynamic Host Configuration Protocol (DHCP) Client Module for Microchip TCP/IP Stack.
- Provides automatic IP address, subnet mask, gateway address, DNS server address, and other configuration parameters on DHCP enabled networks.
- Reference: RFC 2131, 2132
- Dependencies: UDP
- Processor: PIC18, PIC24F, PIC24H, dsPIC30F, dsPIC33F, PIC32
- Compiler: Microchip C32 v1.00 or higher Microchip C30 v3.01 or higher Microchip C18 v3.13 or higher HI-TECH PICC-18 STD 9.50PL3 or higher
- Company: Microchip Technology, Inc.
See the Microchip License Agreement for more details.
- Modifications to the original file
- Search for "MODIFIX" in the code !
- Removed preprocessor macro STACK_USE_DHCP_CLIENT as always defined.
- Implemented the AutoIP feature. If the DHCP client does not find any DHCP server and for that reason gets no IP address, a IP address in the 169.254.X.X address pool is choosen. The following functions are affected:
- Extended the function DHCPReset()
- Extended the function DHCPTask()
- Added the function GenerateAutoIP()
- Todo:
- Generate a doxygen page for discussing the eWicht project and the DHCP and AutoIP behavior (High level).
Definition in file DHCP.c.
Go to the source code of this file.
|
Functions |
| void | DHCPReset (BOOL bNoAutoIP) |
| | Resets the DHCP Client.
|
| void | DHCPDisable (void) |
| | Disables the DHCP client.
|
| void | DHCPEnable (void) |
| | Enables the DHCP client.
|
| void | DHCPTask (void) |
| | Performs periodic DHCP tasks.
|
| IP_ADDR | GenerateAutoIP (IP_ADDR *lastIP) |
| | Generates an IPv4 address from the 169.254.X.X auto IP pool.
|
Variables |
| DHCP_CLIENT_FLAGS | DHCPFlags = {{0x00}} |
Variable Documentation
- Todo:
- Remove the DHCP externals?!
Definition at line 112 of file DHCP.c.