Home |
Function xn_ipcp_set_option Function xn_ipcp_want_compress Function xn_ipcp_want_dns_address |
Function xn_ipcp_set_optionSets or resets an IPCP option as negotiable. int xn_ipcp_set_option(int iface_no, int host, int option, int turn_on); Parametersiface_noInterface number returned by xn_attach. hostSet negotiation flag for local or remote host (LOCAL_HOST or REMOTE_HOST). optionOption to set or reset (IPCP_ADDRESS, IPCP_ADDRESSES, IPCP_COMPRESS). turn_onTurn option on if TRUE; otherwise, turn it off. 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 return values for this function are:
This function establishes whether one of the following IPCP options is negotiable when requested by the remote host: IP Address, IP Addresses, and Compression Type. Call this routine with host set to LOCAL_HOST and turn_on set to TRUE to cause the specified option to be accepted when sent from the remote host in an IPCP Configuration-NAK message. Call this routine with host set to LOCAL_HOST and turn_on set to FALSE to cause the specified option to not be accepted when sent from the remote host in an IPCP Configuration-NAK message. Call this routine with host set to REMOTE_HOST and turn_on set to TRUE to cause the specified option to be accepted when sent from the remote host in an IPCP request message. Call this routine with host set to REMOTE_HOST and turn_on set to FALSE to cause the specified option to not be accepted when sent from the remote host in an IPCP request message.
|