include/alp/cnc_net.h File Reference


Detailed Description

Plugins part of the public Connection Manager API.

#include <time.h>
#include <alp/cnc.h>

Go to the source code of this file.

Plugins list

#define ALP_CNC_BLUETOOTH_IN_PLUGIN_NAME   "BluetoothIn"
 Bluetooth Cnc plugin for input connections.
#define ALP_CNC_BLUETOOTH_PLUGIN_NAME   "BluetoothOut"
 Bluetooth Cnc plugin: Manage Bluetooth devices.
#define ALP_CNC_BLUETOOTH_SERIAL_PLUGIN_NAME   "BluetoothSPP"
 Bluetooth Cnc plugin: Manage Bluetooth Serial devices.
#define ALP_CNC_DATA_CALL_PLUGIN_NAME   "DataCall"
 Data Call Cnc plugin: Manage data connection with Phone devices.
#define ALP_CNC_ETHERNET_PLUGIN_NAME   "Ethernet"
 Ethernet Cnc plugin: Manage Ethernet devices.
#define ALP_CNC_IPIF_IN_PLUGIN_NAME   "IPIFIN"
 IPIFIN plug-in: manage IP incoming connections.
#define ALP_CNC_IPIF_PLUGIN_NAME   "IPIF"
 IPIF Cnc plugin: Manage network configuration (IP interfaces).
#define ALP_CNC_IPSEC_PLUGIN_NAME   "IPSEC"
 IPSEC Cnc plugin: Manage IPSEC connections.
#define ALP_CNC_L2TP_PLUGIN_NAME   "L2TP"
 L2TP Cnc plugin: Manage L2TP connections.
#define ALP_CNC_NET_ACCESS_PLUGIN_NAME   "NetAccess"
 Net Access plug-in:.
#define ALP_CNC_NET_IN_INTERFACE   "NetIn"
 Anchor for NetIn profiles.
#define ALP_CNC_NET_OUT_INTERFACE   "NetOut"
 The various "anchoring points" in the networking Cnc graph.
#define ALP_CNC_NET_OUTGOING_SEARCH_STRING   ALP_CNC_NET_OUT_INTERFACE"/*"
 Netout search string.
#define ALP_CNC_NET_PEER_PLUGIN_NAME   "NetPeer"
 NetPeer plug-in: manage connections over NetIn profiles.
#define ALP_CNC_NO_IPV6_OBJECT   "NoIPv6"
 IPv6 object.
#define ALP_CNC_OMAP_CSMI_PLUGIN_NAME   "OmapCsmi"
 OMAP CSMI Cnc plugin: Manage data connection with Phone devices.
#define ALP_CNC_PHONE_PLUGIN_NAME   "Phone"
 Phone Cnc plugin: Manage connection with Phone devices.
#define ALP_CNC_PPP_PLUGIN_NAME   "PPP"
 PPP Cnc plugin: Manage PPP connections.
#define ALP_CNC_SERIAL_PLUGIN_NAME   "Serial"
 PPP Cnc plugin: Manage Serial devices.
#define ALP_CNC_TUN_IP_PLUGIN_NAME   "TunIP"
 Tunnel IP plug-in: Manage IP tunneling like IPv6-in-IPv4.
#define ALP_CNC_VP_TCP_PLUGIN_NAME   "VP_TCP"
 VP_TCP plugin: Manage TCP connection with VirtualPhone.
#define ALP_CNC_VPN_PLUGIN_NAME   "VPN"
 IPSEC Cnc plugin: Manage VPN connections.
#define ALP_CNC_WIFI_NETWORKS_NAME   "NetWifi"
 Anchor for Wifi cached networks.
#define ALP_CNC_WIFI_PLUGIN_NAME   "Wifi"
 WIFI Cnc plugin: Manage wifi devices.

Parameters list

#define ALP_CNC_DEFAULT_DISCONNECTION_TIMEMOUT   ((time_t) 600)
 Default disconnection timeout value.
#define ALP_CNC_PARAMETER_AGGRESSIVE_MODE   'Aggr'
 Aggresive mode for IPSEC.
#define ALP_CNC_PARAMETER_APPLICATION_DISCONNECTION_TIMEMOUT   'ADsT'
 Application Disconnection timeout in seconds (used when an app disconnects with the ALP_CNC_DISCONNECT_WITH_TIMEOUT flag).
#define ALP_CNC_PARAMETER_ASSOCIATED_PROFILE   'APro'
 Associated NetPeer profile with a NetIn profile.
#define ALP_CNC_PARAMETER_AUTHENTIFICATION_MODE   'Auth'
 Authentication mode: PAP, CHAP,...
#define ALP_CNC_PARAMETER_AUTO_PROFILE   'auto'
 Set to 0 to avoid auto connection/disconnection feature on the profile.
#define ALP_CNC_PARAMETER_BAUD_RATE   'Baud'
 Speed on serial device.
#define ALP_CNC_PARAMETER_BINDED_NETWORKS   'BNts'
 Networks binded to the profile.
#define ALP_CNC_PARAMETER_BLUETOOTH_ADDRESS   'Addr'
 Bluetooth address of the remote device to connection.
#define ALP_CNC_PARAMETER_BOUND_PROFILE   'CPro'
 Profilename of the bound profile with the connection profile (ie VPN).
#define ALP_CNC_PARAMETER_CHECK_CABLE   'Cabl'
 1 to check, 0 to not check if the cable is present
#define ALP_CNC_PARAMETER_CISCO_COMPATIBILITY_MODE   'CisM'
 CISCO Compatibility Mode.
#define ALP_CNC_PARAMETER_CNC_PURPOSE   'CncP'
 Phone Plugin: Connection purpose: Server or Transport.
#define ALP_CNC_PARAMETER_CNC_TYPE   'CncT'
 Phone Plugin: Connection type we want to open: AT command, CSD data call...
#define ALP_CNC_PARAMETER_CONFIGURATION_MODE   'Mode'
 DHCP, Static, Zero Conf...
#define ALP_CNC_PARAMETER_CONNECTION_DELAY   'Dlay'
 Time to wait before continuing connection process (in second).
#define ALP_CNC_PARAMETER_CONNECTION_MODE   'CMod'
 Connection Mode for NetAcces.
#define ALP_CNC_PARAMETER_CONNECTION_PEER   'CoPe'
 0 to not allowed NetOut profile over this NetIn profile, 1 for yes
#define ALP_CNC_PARAMETER_CONNECTION_SHARING   'CoSh'
 0 to not share a connection within the NetIn profile, 1 for yes
#define ALP_CNC_PARAMETER_CONNECTION_TIMEOUT   'ConT'
 Time allowed for connection.
#define ALP_CNC_PARAMETER_DATA_BITS   'Bits'
 Data bits on device.
#define ALP_CNC_PARAMETER_DATA_CALL_CS_BEARER_CNC_ELEM   'BCEl'
 Data Call Plugin: CS bearer cnc element.
#define ALP_CNC_PARAMETER_DATA_CALL_CS_BEARER_SERVICE   'BSrv'
 Data Call Plugin: CS bearer service.
#define ALP_CNC_PARAMETER_DATA_CALL_CS_BEARER_SPEED   'BSpd'
 Data Call Plugin: CS bearer speed.
#define ALP_CNC_PARAMETER_DATA_CALL_CS_DIAL_NUMBER   'Dial'
 Data Call Plugin: CS Dial number.
#define ALP_CNC_PARAMETER_DATA_CALL_PS_APN   'Apna'
 Data Call Plugin: PS access point name.
#define ALP_CNC_PARAMETER_DATA_CALL_PS_DATA_COMP   'Datc'
 Data Call Plugin: PS data compression.
#define ALP_CNC_PARAMETER_DATA_CALL_PS_HEADER_COMP   'Hdrc'
 Data Call Plugin: PS header compression.
#define ALP_CNC_PARAMETER_DATA_CALL_PS_QOS_DELAY   'Dela'
 Data Call Plugin: PS QOS delay.
#define ALP_CNC_PARAMETER_DATA_CALL_PS_QOS_GTED_BITRATE_DL   'Gbrd'
 Data Call Plugin: PS QOS guaranted download bitrate.
#define ALP_CNC_PARAMETER_DATA_CALL_PS_QOS_GTED_BITRATE_UL   'Gbru'
 Data Call Plugin: PS QOS guaranted upload bitrate.
#define ALP_CNC_PARAMETER_DATA_CALL_PS_QOS_MAX_BITRATE_DL   'Mbrd'
 Data Call Plugin: PS QOS max download bitrate.
#define ALP_CNC_PARAMETER_DATA_CALL_PS_QOS_MAX_BITRATE_UL   'Mbru'
 Data Call Plugin: PS QOS max upload bitrate.
#define ALP_CNC_PARAMETER_DATA_CALL_PS_QOS_MEAN   'Mean'
 Data Call Plugin: PS QOS mean.
#define ALP_CNC_PARAMETER_DATA_CALL_PS_QOS_PEAK   'Peak'
 Data Call Plugin: PS QOS peak.
#define ALP_CNC_PARAMETER_DATA_CALL_PS_QOS_PRECEDENCE   'Prec'
 Data Call Plugin: PS QOS precedence.
#define ALP_CNC_PARAMETER_DATA_CALL_PS_QOS_RELIABILITY   'Reli'
 Data Call Plugin: PS QOS reliability.
#define ALP_CNC_PARAMETER_DATA_CALL_PS_QOS_TRAFFIC_CLASS   'Trcl'
 Data Call Plugin: PS QOS traffic class.
#define ALP_CNC_PARAMETER_DATA_CALL_TYPE   'Type'
 Data Call Plugin: Type of data call: CS or PS.
#define ALP_CNC_PARAMETER_DEVICE_NAME   'DevN'
 Device name.
#define ALP_CNC_PARAMETER_DHCP_CLIENT_ID   'DHcl'
 Client ID for the DHCP server.
#define ALP_CNC_PARAMETER_DHCP_HOST_NAME   'DHhn'
 Host name for the DHCP server.
#define ALP_CNC_PARAMETER_DHCP_POOL_SIZE   'PSiz'
 If DHCP=1, define the size of the address pool used by the DHCP server (default 16).
#define ALP_CNC_PARAMETER_DISCONNECTION_TIMEMOUT   'DisT'
 Default Disconnection timeout in seconds.
#define ALP_CNC_PARAMETER_DNS_SERVERS   'DNSs'
 DNS servers.
#define ALP_CNC_PARAMETER_DOMAINS   'Doms'
 Bind search domain names.
#define ALP_CNC_PARAMETER_ENABLE_DHCP   'DHCP'
 IPIFIN parameter: Enable DHCP (default) or use ZeroConf (zcip).
#define ALP_CNC_PARAMETER_ENCRYPTION_MODE   'EMod'
 Encryption mode for the connection (specific use for VPN).
#define ALP_CNC_PARAMETER_EXTRA_OPTIONS   'XOpt'
 Extra options for the plugin.
#define ALP_CNC_PARAMETER_FLOW_CONTROL   'FCtl'
 Flow control on device.
#define ALP_CNC_PARAMETER_GATEWAY   'GaWy'
 Gateway.
#define ALP_CNC_PARAMETER_GROUP_NAME   'GrpN'
 CISCO Goup Name for pre-shared key.
#define ALP_CNC_PARAMETER_HCI_DEVICE   '_Hci'
 Used when the device has more than one BT device. In that case this parameter is used to define the BT device to use for the connection.
#define ALP_CNC_PARAMETER_HEX_PRESHARED_KEY   'HexK'
 Is the preshared key in a hexadecimal format ?
#define ALP_CNC_PARAMETER_IDLE_TIMEOUT   'IdlT'
 Time to wait before deconnecting when idle.
#define ALP_CNC_PARAMETER_INTERFACE_NAME   'DDev'
 IF name.
#define ALP_CNC_PARAMETER_IP_FAMILY   'IPvs'
 IPv4 or IPv6.
#define ALP_CNC_PARAMETER_IP_PROTOCOL   'Prot'
 A protocol (ie TCP, UDP, ICMP...).
#define ALP_CNC_PARAMETER_LINK   'link'
 link parameter (see ALP_CNC_CHANNEL_LINK_XXX constants)
#define ALP_CNC_PARAMETER_LINKED_PROFILE   'LPro'
 The openned channel on the NetPeer profile.
#define ALP_CNC_PARAMETER_LLMNR   'LMNR'
 To activate or desactivate LLMNR for the profile.
#define ALP_CNC_PARAMETER_LOCAL_IP   'LoIP'
 local IP address
#define ALP_CNC_PARAMETER_LOCAL_IP_ADDRESSES   'LIPs'
 List of IPv6 addresses to assign.
#define ALP_CNC_PARAMETER_METRIC   'Mtic'
 IF metric.
#define ALP_CNC_PARAMETER_MTU   '_MTU'
 IF MTU.
#define ALP_CNC_PARAMETER_NO_DEFAULT_PPPD_ARGS   'NDPA'
 0 for use the default arguments to start pppd, 1 for not
#define ALP_CNC_PARAMETER_NO_VPN_AUTH   'NoVA'
 Are the username and the password managed by a lower plug-in instead of the VPN plug-in ?
#define ALP_CNC_PARAMETER_PARITY_BITS   'Prty'
 Parity bits on device.
#define ALP_CNC_PARAMETER_PASSWORD   'Pass'
 Password for authentification.
#define ALP_CNC_PARAMETER_PFS_MODE   'PFSe'
 Perfect Forwarding Secrecy for IPSEC.
#define ALP_CNC_PARAMETER_PHONE_DRIVER   'PDrv'
 Phone Plugin: Phone Driver parameter.
#define ALP_CNC_PARAMETER_PORT   'Port'
 A port (ie for TCP, UDP).
#define ALP_CNC_PARAMETER_PPP_AUTHENTICATION_UI   'PAUI'
 Is the authentication UI part of the PPP plug-in must be displayed ? (default: 0=no).
#define ALP_CNC_PARAMETER_PPP_DATA_COMP   'Datc'
 PPP Plugin: Software compression (default: 1=on).
#define ALP_CNC_PARAMETER_PPP_HEADER_COMP   'Hdrc'
 PPP Plugin: IP Header compression (default: 1=on).
#define ALP_CNC_PARAMETER_PRESHARED_KEY   'PShK'
 Pre-shared key to use for connection (ie VPN).
#define ALP_CNC_PARAMETER_PXLOGICAL_AUTH_ID   'PAId'
 Logical authentication Id.
#define ALP_CNC_PARAMETER_PXLOGICAL_AUTH_PW   'PAPw'
 Logical authentication password.
#define ALP_CNC_PARAMETER_PXLOGICAL_AUTH_TYPE   'PAut'
 Logical proxy authentication type.
#define ALP_CNC_PARAMETER_PXLOGICAL_NAME   'PNam'
 Logical proxy name.
#define ALP_CNC_PARAMETER_PXLOGICAL_NO_PROXY_FOR   'PNoP'
 No Proxy for field.
#define ALP_CNC_PARAMETER_PXLOGICAL_START_PAGE   'PPag'
 Logical proxy start page.
#define ALP_CNC_PARAMETER_PXPHYSICAL_ADDRESS   'PAdr'
 Physical proxy address.
#define ALP_CNC_PARAMETER_PXPHYSICAL_ADDRESS_TYPE   'PAdt'
 Physical proxy address type.
#define ALP_CNC_PARAMETER_PXPHYSICAL_PORT   'PPrt'
 Physical proxy port number.
#define ALP_CNC_PARAMETER_REMOTE_HOST   'ReHt'
 Remote Host domain name or IP address(ie the VPN server).
#define ALP_CNC_PARAMETER_REMOTE_IP   'ReIP'
 remote IP address for point-to-point links
#define ALP_CNC_PARAMETER_SCRIPT_FILE   'LogF'
 File path of the login script.
#define ALP_CNC_PARAMETER_SECURITY   '_Sec'
 Security parameter for Bluetooth connection. (0 = none, 1 = authenticate, 2 = encrypt, 3 = secure).
#define ALP_CNC_PARAMETER_SERVICE   'srv0'
 service parameter (see ALP_CNC_CHANNEL_SRV_XXX constants)
#define ALP_CNC_PARAMETER_SERVICE_NAME   'Topo'
 Topology of the bluetooth network i.e. PANU, GN or NAP.
#define ALP_CNC_PARAMETER_SERVICE_REQUESTED   'srvR'
 service requested parameter (see ALP_CNC_CHANNEL_SRV_XXX constants)
#define ALP_CNC_PARAMETER_STOP_BITS   'Stop'
 Stop bits on device.
#define ALP_CNC_PARAMETER_TTL   '_TTL'
 TTL for tunneling.
#define ALP_CNC_PARAMETER_TUNNEL_PROFILE   'TPro'
 ID of the profile that uses the connection profile to open a tunnel.
#define ALP_CNC_PARAMETER_UI_LOCKED   'Lock'
 Is the plug-in UI is unable to edit when editing a profile with the plug-in ?
#define ALP_CNC_PARAMETER_UI_VISIBLE   'UIVi'
 Is the plug-in UI is visible when editing a profile with the plug-in ?
#define ALP_CNC_PARAMETER_UNIQUE_SLAVE_IP   'USIP'
 for NetIn profiles when PSiz=1, the unique possible IP for the slave device connected
#define ALP_CNC_PARAMETER_USED_PROFILE   'UPro'
 ID of the used profile with the connection profile (ie VPN).
#define ALP_CNC_PARAMETER_USER_NAME   'User'
 Username for authentification.
#define ALP_CNC_PARAMETER_WIFI_ADDRESS   'Addr'
 WiFi: MAC address of the remote access point.
#define ALP_CNC_PARAMETER_WIFI_ENCRYPTION   'WEnc'
 WiFi: see ALP_WIFI_SECURITY_MODE_XXX.
#define ALP_CNC_PARAMETER_WIFI_ESSID   'Ssid'
 WiFi: ESSID of the network.
#define ALP_CNC_PARAMETER_WIFI_LAST_CONNECTION   'Last'
 WiFi: Last connection of the network.
#define ALP_CNC_PARAMETER_WIFI_NETWORK_ID   'NWID'
 WiFi: ID of the connected favorite network.
#define ALP_CNC_PARAMETER_WIFI_RADIO_MODE   'Rdio'
 WiFi: Radio mode: Infrastructure, Ad-Hoc, Hidden...
#define ALP_CNC_PARAMETER_X509_CERTIFICATE   'Cert'
 ID of the X509 certificate to use for the connection (ie VPN).

Plugin errors

#define ALP_STATUS_CNC_ETHERNET_ALREADY_IN_USE   ALP_CNC_CONNECT_STATUS(ALP_STATUS_CNC_PLUGIN_ETHERNET, ALP_STATUS_CNC_CONNECT_BUSY)
#define ALP_STATUS_CNC_ETHERNET_GENERIC   ALP_CNC_CONNECT_STATUS(ALP_STATUS_CNC_PLUGIN_ETHERNET, ALP_STATUS_CNC_CONNECT_GENERIC_ERROR)
#define ALP_STATUS_CNC_ETHERNET_UNPLUGGED   ALP_CNC_CONNECT_STATUS(ALP_STATUS_CNC_PLUGIN_ETHERNET, ALP_STATUS_CNC_CONNECT_UNPLUGGED)
#define ALP_STATUS_CNC_PLUGIN_BLUETOOTH   ((alp_status_t) (0x0B))
 Bluetooth plugin error.
#define ALP_STATUS_CNC_PLUGIN_ETHERNET   ((alp_status_t) (0x02))
 Ethernet plugin error.
#define ALP_STATUS_CNC_PLUGIN_IPIF   ((alp_status_t) (0x01))
 IPIF plugin error.
#define ALP_STATUS_CNC_PLUGIN_IPIF_IN   ((alp_status_t) (0x0F))
 IPIFIN plugin error.
#define ALP_STATUS_CNC_PLUGIN_IPSEC   ((alp_status_t) (0x06))
 IPSEC plugin error.
#define ALP_STATUS_CNC_PLUGIN_L2TP   ((alp_status_t) (0x07))
 L2TP plugin error.
#define ALP_STATUS_CNC_PLUGIN_NET_ACCESS   ((alp_status_t) (0x08))
 NetAccess plugin error.
#define ALP_STATUS_CNC_PLUGIN_NET_IN   ((alp_status_t) (0x0E))
 NetIn plugin error.
#define ALP_STATUS_CNC_PLUGIN_NET_PEER   ((alp_status_t) (0x0D))
 NetPeer plugin error.
#define ALP_STATUS_CNC_PLUGIN_PHONE   ((alp_status_t) (0x0A))
 Phone plugin error.
#define ALP_STATUS_CNC_PLUGIN_PPP   ((alp_status_t) (0x03))
 PPP plugin error.
#define ALP_STATUS_CNC_PLUGIN_SERIAL   ((alp_status_t) (0x04))
 Serial plugin error.
#define ALP_STATUS_CNC_PLUGIN_TUN_IP   ((alp_status_t) (0x09))
 TunIP plugin error.
#define ALP_STATUS_CNC_PLUGIN_USB   ((alp_status_t) (0x10))
 Ethernet plugin error for USB link.
#define ALP_STATUS_CNC_PLUGIN_VPN   ((alp_status_t) (0x05))
 VPN plugin error.
#define ALP_STATUS_CNC_PLUGIN_WIFI   ((alp_status_t) (0x0C))
 Wifi plugin error.
#define ALP_STATUS_CNC_PPP_BAD_PASSWORD   ALP_CNC_CONNECT_STATUS(ALP_STATUS_CNC_PLUGIN_PPP, ALP_STATUS_CNC_CONNECT_AUTHENTICATION)
#define ALP_STATUS_CNC_PPP_GENERIC   ALP_CNC_CONNECT_STATUS(ALP_STATUS_CNC_PLUGIN_PPP, ALP_STATUS_CNC_CONNECT_GENERIC_ERROR)
#define ALP_STATUS_CNC_PPP_INVALID_PROFILE   ALP_CNC_CONNECT_STATUS(ALP_STATUS_CNC_PLUGIN_PPP, ALP_STATUS_CNC_CONNECT_INVALID_PROFILE)
#define ALP_STATUS_CNC_USB_ALREADY_IN_USE   ALP_CNC_CONNECT_STATUS(ALP_STATUS_CNC_PLUGIN_USB, ALP_STATUS_CNC_CONNECT_BUSY)
#define ALP_STATUS_CNC_USB_GENERIC   ALP_CNC_CONNECT_STATUS(ALP_STATUS_CNC_PLUGIN_USB, ALP_STATUS_CNC_CONNECT_GENERIC_ERROR)
#define ALP_STATUS_CNC_USB_UNPLUGGED   ALP_CNC_CONNECT_STATUS(ALP_STATUS_CNC_PLUGIN_USB, ALP_STATUS_CNC_CONNECT_UNPLUGGED)
#define ALP_STATUS_CNC_WIFI_ACCESS_POINT_NOT_FOUND   ALP_CNC_CONNECT_STATUS(ALP_STATUS_CNC_PLUGIN_WIFI, ALP_STATUS_CNC_CONNECT_TIMEOUT)
#define ALP_STATUS_CNC_WIFI_ATHENTICATION_FAILED   ALP_CNC_CONNECT_STATUS(ALP_STATUS_CNC_PLUGIN_WIFI, ALP_STATUS_CNC_CONNECT_AUTHENTICATION)
#define ALP_STATUS_CNC_WIFI_CONNECT_ACCESS_POINT_FAILED   ALP_CNC_CONNECT_STATUS(ALP_STATUS_CNC_PLUGIN_WIFI, ALP_STATUS_CNC_CONNECT_SERVER_FAILED)
#define ALP_STATUS_CNC_WIFI_CONNECTION_FAILED   ALP_STATUS_CNC_WIFI_GENERIC
#define ALP_STATUS_CNC_WIFI_GENERIC   ALP_CNC_CONNECT_STATUS(ALP_STATUS_CNC_PLUGIN_PPP, ALP_STATUS_CNC_CONNECT_GENERIC_ERROR)


Generated on Wed Jul 30 07:06:39 2008 by Doxygen 1.4.6 for ALP SDK + Hiker Documentation

Copyright © 1999-2008 ACCESS CO., LTD. All rights reserved.