Home |
Function xn_ipcp_want_compress Function xn_ipcp_want_dns_address Function xn_ipcp_want_pool |
Function xn_ipcp_want_poolSets IP address pool for remote host addresses. int xn_ipcp_want_pool(int iface_no, BYTE * ip_address_min, BYTE * ip_address_max); Parametersiface_noInterface number returned by xn_attach. ip_address_minMinimum address in IP address pool in network byte order. ip_address_maxMaximum address in IP address pool in network byte order. 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 the IPCP IP address pool for assignment to remote hosts. In order to set up a pool for the remote host (to provide an address if the remote host sends a Configuration-Request with a 0 address), call this routine with the address range of the pool. Negotiable is always set to TRUE, which forces acceptance of an address requested by the REMOTE host. Calling xn_ipcp_want_address with remote host set to REMOTE_HOST will override this routine. The default is not to have an address pool. If this routine and xn_ipcp_want_address (REMOTE_HOST) are not called, the IP addresses specified in xn_attach will be sent to the other side if a message is received requesting these addresses, i.e. if a null address is received. In order to extract the IP addresses negotiated, xn_interface_info can be called after xn_lcp_open. Function xn_ipcp_want_dns_address
|