Data Structures | |
struct | dyn_cfg |
Functions | |
int | ParseReply (DYNCFG *cfgp, u_long ip, struct bootp *bp, int len) |
Parse a DHCP reply telegram. | |
NutDhcpClient (void *arg) | |
DHCP client thread. | |
__BEGIN_DECLS int | NutDhcpIfConfig (CONST char *name, u_char *mac, u_long timeout) |
Automatically configure an Ethernet network interface. | |
int | NutNetAutoConfig (CONST char *name) |
Automatically configure a network interface. |
|
DHCP client thread. This thread implements a DHCP state machine.
|
|
Automatically configure an Ethernet network interface. If no MAC address is specified, this routine will try to read a previously stored configuration from the EEPROM. If this retrieves a valid IP configuration, then the network interface will be immediately configured with these values by calling NutNetIfConfig(). If no valid IP configuration has been read, then this routine will start the DHCP client thread and wait upto a given number of milliseconds for a response from a DHCP server. If a MAC address has been specified, this routine will not read the EEPROM configuration. If the application has set the global ::CONFNET structure to a valid IP configuration before calling this function, then the network interface will be immediately configured with these values by calling NutNetIfConfig(). Otherwise the DHCP client thread will be started and this routine will wait upto a given number of milliseconds for a response from a DHCP server.
|
|
Automatically configure a network interface. This function is deprecated. New applications should call NutDhcpIfConfig().
|
|
Parse a DHCP reply telegram.
|