Home |
Function xn_ipcp_want_compress Function xn_ipcp_want_dns_address Function xn_lcp_set_option |
Function xn_lcp_set_optionSets or resets an LCP option as negotiable. int xn_lcp_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 (LCP_MRU, LCP_ACCM, LCP_AUTHENT, LCP_PFC, LCP_ACFC, LCP_MAGIC). 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 values for this function are:
This function establishes whether one of the following LCP options is negotiable if requested by the remote host: Maximum-Receive-Unit, Async-Control-Character-Map, Authentication-Type, Protocol-Field-Compression, Address-and-Control-Field-Compression, and Magic-Number. Call this routine with host set to LOCAL_HOST and turn_on set to TRUE to accept the specified option if it is sent from the remote host in an LCP Configuration-NAK message. Call this routine with host set to REMOTE_HOST and turn_on set to FALSE to not accept the option if sent from the remote host in a Configuration-NAK message. Call this routine with host set to REMOTE_HOST and turn_on set to TRUE to accept an LCP Configuration-Request for the option if it is sent from the remote. Call this routine with host set to REMOTE_HOST and turn_on set to FALSE to reject an LCP Configuration-Request for the option if it is sent from the remote host.
|