aboutsummaryrefslogtreecommitdiff
path: root/src/vpn
diff options
context:
space:
mode:
authorPhilipp Tölke <toelke@in.tum.de>2011-06-15 07:15:32 +0000
committerPhilipp Tölke <toelke@in.tum.de>2011-06-15 07:15:32 +0000
commit2a77b2231c6718843ad5cfe1be0697aa4a725d03 (patch)
tree37b2f3dd5e23d5185447d284d5260d61a60a12ff /src/vpn
parent9dc2dba015ab0b34d651afb04a5fc9fd520a0aad (diff)
downloadgnunet-2a77b2231c6718843ad5cfe1be0697aa4a725d03.tar.gz
gnunet-2a77b2231c6718843ad5cfe1be0697aa4a725d03.zip
specify application-types
Diffstat (limited to 'src/vpn')
-rw-r--r--src/vpn/gnunet-daemon-exit.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/vpn/gnunet-daemon-exit.c b/src/vpn/gnunet-daemon-exit.c
index c999df834..7ccf2b26b 100644
--- a/src/vpn/gnunet-daemon-exit.c
+++ b/src/vpn/gnunet-daemon-exit.c
@@ -27,6 +27,7 @@
27#include <gnunet_common.h> 27#include <gnunet_common.h>
28#include <gnunet_program_lib.h> 28#include <gnunet_program_lib.h>
29#include <gnunet_protocols.h> 29#include <gnunet_protocols.h>
30#include <gnunet_applications.h>
30#include <gnunet_mesh_service.h> 31#include <gnunet_mesh_service.h>
31#include <gnunet_constants.h> 32#include <gnunet_constants.h>
32#include <string.h> 33#include <string.h>
@@ -1177,7 +1178,15 @@ run (void *cls,
1177 {receive_tcp_remote, GNUNET_MESSAGE_TYPE_REMOTE_TCP, 0}, 1178 {receive_tcp_remote, GNUNET_MESSAGE_TYPE_REMOTE_TCP, 0},
1178 {NULL, 0, 0} 1179 {NULL, 0, 0}
1179 }; 1180 };
1180 mesh_handle = GNUNET_MESH_connect (cfg_, NULL, NULL, handlers, NULL); 1181
1182 const static GNUNET_MESH_ApplicationType apptypes[] =
1183 {
1184 GNUNET_APPLICATION_TYPE_INTERNET_TCP_GATEWAY,
1185 GNUNET_APPLICATION_TYPE_INTERNET_UDP_GATEWAY,
1186 GNUNET_APPLICATION_TYPE_END
1187 };
1188
1189 mesh_handle = GNUNET_MESH_connect (cfg_, NULL, NULL, handlers, apptypes);
1181 1190
1182 cfg = cfg_; 1191 cfg = cfg_;
1183 udp_connections = GNUNET_CONTAINER_multihashmap_create (65536); 1192 udp_connections = GNUNET_CONTAINER_multihashmap_create (65536);