![]() |
| Home |
|
|
Function xn_get_dhcp_opExtracts a DHCP option from the server response.
int xn_get_dhcp_op(DHCP_session * session,
BYTE op_id,
BYTE bufsize,
PFVOID dest);
ParameterssessionPointer to DHCP_session used in xn_dhcp. op_idThe option to extract (see below). bufsizeMax data (in bytes) to write to *dest. destPointer to destination buffer to which the option data will be written. return valueReturns 0 if successful, otherwise SOCKET_ERROR. If an error occurred, call xn_getlasterror and xn_geterror_string to return the error value. Section Error Codes further describes each error. Possible values for this function are:
This routine extracts a DHCP option from a server response. If you used a custom configuration when calling xn_dhcp, you may have requested parameters that are not the RTIP-32 standard DHCP parameters. To extract these parameters from the server response packet, use this routine. Even though you can use this routine to access RTIP-32 standard DHCP parameters, it is easier to use the session->param field for this purpose. See section struct DHCP_std_params for more information. Supported op_id values:
|