Main Page   Modules   Data Structures   File List   Data Fields   Globals   Related Pages   Examples  

/opentcp/include/inet/dhcp/dhcpc.h File Reference


Detailed Description

Author:
Version:
1.0
Date:
23.5.2003
OpenTCP DHCP protocol function declarations, constants, etc.

Definition in file dhcpc.h.

Go to the source code of this file.

Functions

INT8 dhcpc_init (void)
 Initializes DHCP client.

void dhcpc_run (void)
 DHCP client main state machine.


Function Documentation

INT8 dhcpc_init void   
 

Author:
Date:
23.05.2003
This function should be called once when system starts to initialize and start DHCP client. Before this function is invoked, localmachine.localip MUST be se to either zero (in which case DHCP client will request any IP address) or a previously assigned IP address (which doesn't mean DHCP server will allow us to continue using this address) in which case DHCP client will first try to obtain that existing IP address.

Definition at line 158 of file dhcpc.c.

References dhcpc_eventlistener(), dhcpc_initialized, dhcpc_soc_handle, dhcpc_state, dhcpc_timer_handle, get_timer(), init_timer(), TIMERTIC, udp_getsocket(), udp_open(), UDP_OPT_CHECK_CS, and UDP_OPT_SEND_CS.

void dhcpc_run void   
 

Author:
Date:
23.05.2003
Call this function periodically from main loop to ensure proper operation. This function holds the main state machine of DHCP client that ensures proper operation.

Definition at line 201 of file dhcpc.c.

References check_timer(), dhcpc_initialized, dhcpc_requested_ip, dhcpc_send_message(), dhcpc_state, dhcpc_t1, dhcpc_t2, dhcpc_timer_handle, init_timer(), and TIMERTIC.


Generated on Sun Aug 3 20:33:00 2003 for OpenTCP by doxygen1.2.18