WIZlib Library API
ver 1.0
WIZlib Library API User Menual
|
Dynamic Host Configuration Protocol. More...
Enumerations | |
enum | dhcp_state { DHCP_STATE_INIT, DHCP_STATE_SEARCHING, DHCP_STATE_SELECTING, DHCP_STATE_REQUESTING, DHCP_STATE_IP_CHECK, DHCP_STATE_BOUND, DHCP_STATE_FAILED } |
DHCP State. More... | |
enum | dhcp_action { DHCP_ACT_NONE, DHCP_ACT_START, DHCP_ACT_RENEW, DHCP_ACT_REBIND } |
DHCP Action. More... | |
Functions | |
int8 | dhcp_init (uint8 sock, void_func ip_update_hook, void_func ip_conflict_hook, wiz_NetInfo *def) |
Initialize DHCP module. More... | |
int8 | dhcp_manual (dhcp_action action, uint32 *renew, uint32 *rebind) |
DHCP manual mode handler. More... | |
dhcp_state | dhcp_get_state (void) |
Return current DHCP state. More... | |
void | dhcp_set_storage (wiz_NetInfo *net) |
Update DHCP default address storage. More... | |
void | dhcp_get_storage (wiz_NetInfo *net) |
Return DHCP default address storage. More... | |
void | dhcp_static_mode (wiz_NetInfo *net) |
Change DHCP mode to Static. More... | |
void | dhcp_auto_start (void) |
DHCP Auto mode (alarm mode) start function. More... | |
Dynamic Host Configuration Protocol.
enum dhcp_action |
enum dhcp_state |
DHCP State.
void dhcp_auto_start | ( | void | ) |
DHCP Auto mode (alarm mode) start function.
dhcp_state dhcp_get_state | ( | void | ) |
Return current DHCP state.
void dhcp_get_storage | ( | wiz_NetInfo * | net | ) |
Return DHCP default address storage.
net | The struct variable in which storage addresses will be returned |
int8 dhcp_init | ( | uint8 | sock, |
void_func | ip_update_hook, | ||
void_func | ip_conflict_hook, | ||
wiz_NetInfo * | def | ||
) |
Initialize DHCP module.
This should be called just one time at first time
sock | Socket number to use |
ip_update_hook | Callback function for IP-update hooking |
ip_conflict_hook | Callback function for IP-conflict hooking (Not implemented yet) |
def | Default Address to set |
Definition at line 191 of file dhcp.c.
int8 dhcp_manual | ( | dhcp_action | action, |
uint32 * | renew, | ||
uint32 * | rebind | ||
) |
DHCP manual mode handler.
action | The action you want to do. (dhcp_action) |
renew | For returning renew time when DHCP be bound (NULL will be ignored) |
rebind | For returning rebind time when DHCP be bound (NULL will be ignored) |
void dhcp_set_storage | ( | wiz_NetInfo * | net | ) |
Update DHCP default address storage.
You can update DHCP internal address storage through this
net | The addresses you want to set at default address storage
|
void dhcp_static_mode | ( | wiz_NetInfo * | net | ) |
Change DHCP mode to Static.
Even though DHCP was enabled, it can be changed to Static mode through this function
net | The addresses you want to set as static addresses
|