aboutsummaryrefslogtreecommitdiff
path: root/src/vpn
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2013-07-08 11:04:32 +0000
committerBart Polot <bart@net.in.tum.de>2013-07-08 11:04:32 +0000
commit200667a697bb2fa1ade4a78b7bb9a8cef8f3d5d5 (patch)
tree4d88fd5a6a42a098a39cdb9a5befe4bfd8e2cfe5 /src/vpn
parenteb420e4b0f23c6ddb079cd40bc76b4f2a35bdbb1 (diff)
downloadgnunet-200667a697bb2fa1ade4a78b7bb9a8cef8f3d5d5.tar.gz
gnunet-200667a697bb2fa1ade4a78b7bb9a8cef8f3d5d5.zip
Added mesh reliable tunnels
Diffstat (limited to 'src/vpn')
-rw-r--r--src/vpn/gnunet-service-vpn.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/vpn/gnunet-service-vpn.c b/src/vpn/gnunet-service-vpn.c
index 7844df15b..5230dc631 100644
--- a/src/vpn/gnunet-service-vpn.c
+++ b/src/vpn/gnunet-service-vpn.c
@@ -785,9 +785,11 @@ handle_regex_result (void *cls,
785 GNUNET_REGEX_search_cancel (ts->search); 785 GNUNET_REGEX_search_cancel (ts->search);
786 ts->search = NULL; 786 ts->search = NULL;
787 ts->tunnel = GNUNET_MESH_tunnel_create (mesh_handle, 787 ts->tunnel = GNUNET_MESH_tunnel_create (mesh_handle,
788 ts, 788 ts,
789 id, 789 id,
790 PORT_VPN); 790 PORT_VPN,
791 GNUNET_YES,
792 GNUNET_NO);
791} 793}
792 794
793 795
@@ -827,8 +829,10 @@ create_tunnel_to_destination (struct DestinationEntry *de,
827 { 829 {
828 ts->tunnel = GNUNET_MESH_tunnel_create (mesh_handle, 830 ts->tunnel = GNUNET_MESH_tunnel_create (mesh_handle,
829 ts, 831 ts,
830 &de->details.service_destination.target, 832 &de->details.service_destination.target,
831 PORT_VPN); 833 PORT_VPN,
834 GNUNET_YES,
835 GNUNET_NO);
832 if (NULL == ts->tunnel) 836 if (NULL == ts->tunnel)
833 { 837 {
834 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, 838 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,