From 48cef2a6eb6a912a2cdc123d19398e83bb37dc2f Mon Sep 17 00:00:00 2001 From: Abhishek Sansanwal Date: Tue, 5 Sep 2017 16:25:31 +0530 Subject: [PATCH] Updated VPN docs to reflect current CAPI status PS4: Reviewed Signed-off-by: Abhishek Sansanwal Change-Id: I040357101cc57d694f00e24066eb40d59f6a60c8 --- .../html/native/connectivity/vpn_n.htm | 173 +++++++++++---------- 1 file changed, 95 insertions(+), 78 deletions(-) diff --git a/org.tizen.guides/html/native/connectivity/vpn_n.htm b/org.tizen.guides/html/native/connectivity/vpn_n.htm index 1a7b7d4..bfb866d 100644 --- a/org.tizen.guides/html/native/connectivity/vpn_n.htm +++ b/org.tizen.guides/html/native/connectivity/vpn_n.htm @@ -30,7 +30,7 @@
  • Prerequisites
  • Getting Interface Parameters
  • Setting Interface Parameters
  • -
  • Configuring the Interface
  • +
  • Configuring the Interface and Connecting to the Service
  • Blocking and Unblocking Networks
  • Reading and Writing Data
  • @@ -63,24 +63,12 @@ Description - _MAX_FILE_PATH_LEN - Maximum file path length - - - _USER_SETTING_DEFAULT_MTU - Default MTU - - - _USER_SETTING_DEFAULT_SESSION - Default session name - - VPNSVC_IP4_STRING_LEN IPv4 address string length - VPNSVC_TUN_IF_NAME_LEN - Tunnel interface name length + VPNSVC_VPN_IFACE_NAME_LEN + VPN interface name length VPNSVC_SESSION_STRING_LEN @@ -90,10 +78,11 @@
  • VPN profile -

    You can map the VPN profile and get details about the VPN service using the vpnsvc_h handle.

    +

    You can map the VPN profile and get details about the VPN service by using the vpnsvc_h handle.

    The VPN profile provides different functions for routing management, DNS management, and firewall management:

      -
    • The vpnsvc_up() function is used to set up the tunnel interface by setting the default route and DNS parameters.
    • +
    • The vpnsvc_init() function is used to a initialize the VPN interface and get the handle.
    • +
    • The vpnsvc_h handle is used to configure the tunnel interface before using the VPN application control to ask the user permission to connect to the VPN service.
    • The vpnsvc_block_networks() function is used to block network traffic by creating a route parameter for allowed VPN and original interface routes.
  • @@ -110,8 +99,8 @@
  • Privilege:

    The application needs the partner level privilege for accessing the VPN service daemon.

  • -
  • VPN license: -

    The VPN configurations, such as DNS, routing, and firewall (iptables), need an admin capability. The VPN service daemon checks the application's VPN license to verify that the client application has the admin capability.

    +
  • Application control: +

    Connecting or disconnecting from a VPN network requires user permission, which is requested by invoking the VPN application control.

  • @@ -191,33 +180,33 @@ handle = NULL;

    To get the interface parameters after successfully initializing the VPN service: