diff options
author | Philipp Tölke <toelke@in.tum.de> | 2011-06-15 07:15:41 +0000 |
---|---|---|
committer | Philipp Tölke <toelke@in.tum.de> | 2011-06-15 07:15:41 +0000 |
commit | 32836e0a1ea37c794f740eba5e713c00d44e149c (patch) | |
tree | 1227606713d7c069d933196d8de66e22dc7ab2b8 /src/vpn | |
parent | 577af3bb852b27228011c439a957bdbe738f057a (diff) | |
download | gnunet-32836e0a1ea37c794f740eba5e713c00d44e149c.tar.gz gnunet-32836e0a1ea37c794f740eba5e713c00d44e149c.zip |
When connecting to mesh, give your app-types!
Diffstat (limited to 'src/vpn')
-rw-r--r-- | src/vpn/gnunet-daemon-vpn.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/vpn/gnunet-daemon-vpn.c b/src/vpn/gnunet-daemon-vpn.c index a085f8065..8f78073dd 100644 --- a/src/vpn/gnunet-daemon-vpn.c +++ b/src/vpn/gnunet-daemon-vpn.c | |||
@@ -29,6 +29,7 @@ | |||
29 | #include "gnunet-vpn-packet.h" | 29 | #include "gnunet-vpn-packet.h" |
30 | #include "gnunet_common.h" | 30 | #include "gnunet_common.h" |
31 | #include "gnunet_protocols.h" | 31 | #include "gnunet_protocols.h" |
32 | #include "gnunet_applications.h" | ||
32 | #include <gnunet_mesh_service.h> | 33 | #include <gnunet_mesh_service.h> |
33 | #include "gnunet_client_lib.h" | 34 | #include "gnunet_client_lib.h" |
34 | #include "gnunet_container_lib.h" | 35 | #include "gnunet_container_lib.h" |
@@ -714,11 +715,16 @@ run (void *cls, | |||
714 | {receive_tcp_back, GNUNET_MESSAGE_TYPE_REMOTE_TCP_BACK, 0}, | 715 | {receive_tcp_back, GNUNET_MESSAGE_TYPE_REMOTE_TCP_BACK, 0}, |
715 | {NULL, 0, 0} | 716 | {NULL, 0, 0} |
716 | }; | 717 | }; |
718 | |||
719 | static const GNUNET_MESH_ApplicationType types[] = { | ||
720 | GNUNET_APPLICATION_TYPE_END | ||
721 | }; | ||
722 | |||
717 | mesh_handle = GNUNET_MESH_connect(cfg_, | 723 | mesh_handle = GNUNET_MESH_connect(cfg_, |
718 | NULL, | 724 | NULL, |
719 | NULL, | 725 | NULL, |
720 | handlers, | 726 | handlers, |
721 | NULL); | 727 | types); |
722 | cfg = cfg_; | 728 | cfg = cfg_; |
723 | restart_hijack = 0; | 729 | restart_hijack = 0; |
724 | hashmap = GNUNET_CONTAINER_multihashmap_create(65536); | 730 | hashmap = GNUNET_CONTAINER_multihashmap_create(65536); |