IPv4 DHCP Client Control and Configuration
[DHCP Client Invocation and Control]


Modules

 IPv4 DHCP Lease Options

Data Structures

struct  dhcp4_nic_s

Typedefs

typedef dhcpv4_control_s DHCPv4_control
typedef dhcp4_nic_s DHCPv4_nic

Functions

DHCPv4_controldhcpv4_control (NLH_t nic_handle, char *eth_if_name, LIBDHCP_Capability dhc_cap, time_t timeout, LIBDHCP_Error_Handler error_handler, uint8_t log_level,...)
DHCPv4_controldhcpv4_control_va (NLH_t nic_handle, char *eth_if_name, LIBDHCP_Capability dhc_cap, time_t timeout, LIBDHCP_Error_Handler error_handler, uint8_t log_level, va_list dhclient_va)
void dhcpv4_control_free (DHCPv4_control *)
DHCPv4_nicdo_dhcpv4 (DHCPv4_control *)
NIC_Res_t dhcpv4_nic (NLH_t, DHCPv4_nic *)
uint32_t dhcpv4_mtu_option (DHCPv4_control *)
int dhcp4_process_lease (DHCPv4_control *)
DHCPv4_nicdhcp4_set_lease (DHCPv4_control *, DHCPv4_lease *)
void dhcp4_nic_option_handler (DHCPv4_option *option, void *arg)
int dhcp4_nic_callback (LIBDHCP_Control *control, DHCP_State state, void *arg)

Detailed Description

Network Interface Configurator for the ISC DHCP IPv4 client library.

Typedef Documentation

typedef struct dhcpv4_control_s DHCPv4_control

The DHCPv4 client control structure. This has more fields than the plain LIBDHCP_Control structure, and must be obtained by calling dhcpv4_control.

Definition at line 34 of file dhcp4_nic.h.

typedef struct dhcp4_nic_s DHCPv4_nic

DHCPv4_nic: structure representing the network interface configuration parameters associated with a DHCPv4_lease.


Function Documentation

DHCPv4_control* dhcpv4_control ( NLH_t  nic_handle,
char *  eth_if_name,
LIBDHCP_Capability  dhc_cap,
time_t  timeout,
LIBDHCP_Error_Handler  error_handler,
uint8_t  log_level,
  ... 
)

dhcpv4_control(): returns a new DHCPv4_control structure.

Parameters:
nic_handle  nic library handle - NIC Module Interface
eth_if_name  ethernet interface name
dhc_cap  DHCP capability -
See also:
LIBDHCP_Capability
timeout  timeout -
See also:
LIBDHCP_Control::timeout
error_handler  error handler -
See also:
LIBDHCP_Control::error_handler
log_level  log_level -
See also:
LIBDHCP_Control::log_level

Definition at line 162 of file dhcp4_nic.c.

References dhcpv4_control_va().

void dhcpv4_control_free ( DHCPv4_control  ) 

dhcpv4_control_free( ctl ) : frees all resources associated with ctl.

Definition at line 189 of file dhcp4_nic.c.

References dhcpv4_control_s::addr_list, dhcpv4_control_s::argv, dhcpv4_lease_free(), dhcpv4_control_s::dns_list, dhcpv4_control_s::host_name, dhcpv4_control_s::if_name, dhcpv4_control_s::lease, nic_address_list_free(), nic_route_list_free(), dhcpv4_control_s::route_list, and dhcpv4_control_s::search_list.

Referenced by dhcp_nic_free(), dhcpv4_control_va(), and do_dhcpv4().

DHCPv4_control* dhcpv4_control_va ( NLH_t  nic_handle,
char *  eth_if_name,
LIBDHCP_Capability  dhc_cap,
time_t  timeout,
LIBDHCP_Error_Handler  error_handler,
uint8_t  log_level,
va_list  dhclient_va 
)

dhcpv4_control_va - dhcpv4_control() that can be called with a va_list.

Definition at line 80 of file dhcp4_nic.c.

References dhcpv4_control_s::addr_list, dhcpv4_control_s::arg, dhcpv4_control_s::argc, dhcpv4_control_s::argv, dhcpv4_control_s::callback, dhcpv4_control_s::capability, dhcp4_nic_callback(), dhcpv4_control_free(), dhcpv4_control_s::dns_list, dhcpv4_control_s::eh, dhcpv4_control_s::if_name, dhcpv4_control_s::log_level, dhcpv4_control_s::nh, dhcpv4_control_s::nic, nic_by_name(), dhcpv4_control_s::route_list, and dhcpv4_control_s::timeout.

Referenced by dhcpv4_control().


Generated on Mon Aug 14 17:25:56 2006 for libdhcp by  doxygen 1.4.7