By using this protocol, system administration workload greatly decreases, and devices can be added to the network with minimal or no manual configurations (Source: Wikipedia).
Files | |
| file | DHCP.c |
| Dynamic Host Configuration Protocol (DHCP) Client Module for Microchip TCP/IP Stack. | |
| file | DHCP.h |
| DHCP Defs for Microchip TCP/IP Stack. | |
Defines | |
| #define | DHCPIsBound() (DHCPFlags.bits.bIsBound) |
| Determines if the DHCP server is currently bound. | |
Functions | |
| void | DHCPReset (BOOL bNoAutoIP) |
| Resets the DHCP Client. | |
| void | DHCPTask (void) |
| Performs periodic DHCP tasks. | |
| void | DHCPDisable (void) |
| Disables the DHCP client. | |
| void | DHCPEnable (void) |
| Enables the DHCP client. | |
| IP_ADDR | GenerateAutoIP (IP_ADDR *lastIP) |
| Generates an IPv4 address from the 169.254.X.X auto IP pool. | |
| #define DHCPIsBound | ( | ) | (DHCPFlags.bits.bIsBound) |
| void DHCPDisable | ( | void | ) |
Disables the DHCP client.
Disables the DHCP client by sending the state machine to "SM_DHCP_DISABLED". If the board was previously configured by DHCP, the configuration will continue to be used but the module will no longer preform any renewals.
| void DHCPEnable | ( | void | ) |
| void DHCPReset | ( | BOOL | bNoAutoIP | ) |
| void DHCPTask | ( | void | ) |
Performs periodic DHCP tasks.
This function performs any periodic tasks requied by the DHCP module, such as sending and receiving messages involved with obtaining and maintaining a lease.
| IP_ADDR GenerateAutoIP | ( | IP_ADDR * | lastIP | ) |
Generates an IPv4 address from the 169.254.X.X auto IP pool.
This function was added for the eWicht project. The new IP address must be checked for there uniqueness in the network before using!
| lastIP | This parameter can point to a IP address used before. The function than constructs the new address based on the last one. |
1.5.5