DHCP.c File Reference


Detailed Description

Dynamic Host Configuration Protocol (DHCP) Client Module for Microchip TCP/IP Stack.

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:
    1. Extended the function DHCPReset()
    2. Extended the function DHCPTask()
    3. 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

DHCP_CLIENT_FLAGS DHCPFlags = {{0x00}}

Todo:
Remove the DHCP externals?!

Definition at line 112 of file DHCP.c.


Generated on Sun Nov 27 20:02:39 2011 for eWicht by  doxygen 1.5.5