Function xn_set_dhcp_callback
Sets a callback routine for DHCPOFFER selection.
typedef int (*DHCP_callback_fp)(DHCP_packet *, int, DHCP_conf *);
void xn_set_dhcp_callback(DHCP_callback_fp fp);
ParametersfpPointer to callback routine.
The parameters for the callback are:
Value |
Meaning |
DHCP_packet * |
Points to an array of server responses. |
int |
The number of elements in the array. |
DHCP_conf * |
'conf' parameter passed to xn_dhcp. |
return value |
An index into the array of type (DHCP_packet *) which indicates which DHCPOFFER has been chosen. |
This function sets up a callback routine for selection of a DHCPOFFER. The callback routine will be called by xn_dhcp to select a DHCP server from which to obtain network configuration parameters.
DHCP Client
Function xn_init_dhcp_conf
Function cb_dhcp_new_ip_fnc
|