Home |
Function xn_ipcp_want_compress Function xn_ipcp_want_dns_address Function xn_lcp_want_option |
Function xn_lcp_want_optionSets or resets LCP negotiation for various options. int xn_lcp_want_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 negotiate; LCP_ACFC, LCP_MAGIC (off only), LCP_PFC, LCP_ACCM (off only), LCP_MRU (off only). 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 to request the following LCP options: Address-and-Control-Field-Compression, Protocol-Field-Compression and Magic Number. Call this function with the appropriate option number, turn_on set to TRUE and host set to LOCAL_HOST to request Address-and-Control-Field-Compression or Protocol-Field-Compression options. The option will be requested in the Configuration-Request message sent to the remote host. The option will be dropped if it is rejected by the remote host. Call this function with the appropriate option number, turn_on set to TRUE and host set to REMOTE_HOST to suggest an option (Address-and-Control-Field-Compression or Protocol-Field-Compression) if it is not requested by the remote host. The option will be suggested in a Configuration-Nak sent to the remote host. The option will be dropped after 10 retries if the Configuration-Requests received in response to the Configuration-NAK does not contain the option. The default value is to not to request the option.
|