diff options
Diffstat (limited to 'src/mesh')
-rw-r--r-- | src/mesh/gnunet-service-mesh_local.c | 4 | ||||
-rw-r--r-- | src/mesh/gnunet-service-mesh_peer.c | 2 | ||||
-rw-r--r-- | src/mesh/mesh_api.c | 2 |
3 files changed, 3 insertions, 5 deletions
diff --git a/src/mesh/gnunet-service-mesh_local.c b/src/mesh/gnunet-service-mesh_local.c index 099a55e26..8b66517d0 100644 --- a/src/mesh/gnunet-service-mesh_local.c +++ b/src/mesh/gnunet-service-mesh_local.c | |||
@@ -1008,7 +1008,7 @@ GML_send_channel_create (struct MeshClient *c, | |||
1008 | struct GNUNET_MESH_ChannelMessage msg; | 1008 | struct GNUNET_MESH_ChannelMessage msg; |
1009 | 1009 | ||
1010 | msg.header.size = htons (sizeof (msg)); | 1010 | msg.header.size = htons (sizeof (msg)); |
1011 | msg.header.type = htons (GNUNET_MESSAGE_TYPE_MESH_LOCAL_TUNNEL_CREATE); | 1011 | msg.header.type = htons (GNUNET_MESSAGE_TYPE_MESH_CHANNEL_CREATE); |
1012 | msg.channel_id = htonl (id); | 1012 | msg.channel_id = htonl (id); |
1013 | msg.port = htonl (port); | 1013 | msg.port = htonl (port); |
1014 | msg.opt = htonl (opt); | 1014 | msg.opt = htonl (opt); |
@@ -1037,7 +1037,7 @@ GML_send_channel_destroy (struct MeshClient *c, uint32_t id) | |||
1037 | if (GNUNET_YES == c->shutting_down) | 1037 | if (GNUNET_YES == c->shutting_down) |
1038 | return; | 1038 | return; |
1039 | msg.header.size = htons (sizeof (msg)); | 1039 | msg.header.size = htons (sizeof (msg)); |
1040 | msg.header.type = htons (GNUNET_MESSAGE_TYPE_MESH_LOCAL_TUNNEL_DESTROY); | 1040 | msg.header.type = htons (GNUNET_MESSAGE_TYPE_MESH_CHANNEL_DESTROY); |
1041 | msg.channel_id = htonl (id); | 1041 | msg.channel_id = htonl (id); |
1042 | msg.port = htonl (0); | 1042 | msg.port = htonl (0); |
1043 | memset (&msg.peer, 0, sizeof (msg.peer)); | 1043 | memset (&msg.peer, 0, sizeof (msg.peer)); |
diff --git a/src/mesh/gnunet-service-mesh_peer.c b/src/mesh/gnunet-service-mesh_peer.c index 967bd1712..f18dcbb76 100644 --- a/src/mesh/gnunet-service-mesh_peer.c +++ b/src/mesh/gnunet-service-mesh_peer.c | |||
@@ -808,7 +808,6 @@ queue_send (void *cls, size_t size, void *buf) | |||
808 | /* Fill buf */ | 808 | /* Fill buf */ |
809 | switch (queue->type) | 809 | switch (queue->type) |
810 | { | 810 | { |
811 | case GNUNET_MESSAGE_TYPE_MESH_TUNNEL_DESTROY: | ||
812 | case GNUNET_MESSAGE_TYPE_MESH_CONNECTION_DESTROY: | 811 | case GNUNET_MESSAGE_TYPE_MESH_CONNECTION_DESTROY: |
813 | case GNUNET_MESSAGE_TYPE_MESH_CONNECTION_BROKEN: | 812 | case GNUNET_MESSAGE_TYPE_MESH_CONNECTION_BROKEN: |
814 | case GNUNET_MESSAGE_TYPE_MESH_ENCRYPTED: | 813 | case GNUNET_MESSAGE_TYPE_MESH_ENCRYPTED: |
@@ -922,7 +921,6 @@ GMP_queue_destroy (struct MeshPeerQueue *queue, int clear_cls) | |||
922 | switch (queue->type) | 921 | switch (queue->type) |
923 | { | 922 | { |
924 | case GNUNET_MESSAGE_TYPE_MESH_CONNECTION_DESTROY: | 923 | case GNUNET_MESSAGE_TYPE_MESH_CONNECTION_DESTROY: |
925 | case GNUNET_MESSAGE_TYPE_MESH_TUNNEL_DESTROY: | ||
926 | LOG (GNUNET_ERROR_TYPE_INFO, "destroying a DESTROY message\n"); | 924 | LOG (GNUNET_ERROR_TYPE_INFO, "destroying a DESTROY message\n"); |
927 | /* fall through */ | 925 | /* fall through */ |
928 | case GNUNET_MESSAGE_TYPE_MESH_ENCRYPTED: | 926 | case GNUNET_MESSAGE_TYPE_MESH_ENCRYPTED: |
diff --git a/src/mesh/mesh_api.c b/src/mesh/mesh_api.c index c202ed231..c9df698fb 100644 --- a/src/mesh/mesh_api.c +++ b/src/mesh/mesh_api.c | |||
@@ -1062,7 +1062,7 @@ msg_received (void *cls, const struct GNUNET_MessageHeader *msg) | |||
1062 | process_channel_created (h, (struct GNUNET_MESH_ChannelMessage *) msg); | 1062 | process_channel_created (h, (struct GNUNET_MESH_ChannelMessage *) msg); |
1063 | break; | 1063 | break; |
1064 | /* Notify of a channel disconnection */ | 1064 | /* Notify of a channel disconnection */ |
1065 | case GNUNET_MESSAGE_TYPE_MESH_CHANNEL_DESTROY: | 1065 | case GNUNET_MESSAGE_TYPE_MESH_CHANNEL_DESTROY: /* TODO separate(gid problem)*/ |
1066 | case GNUNET_MESSAGE_TYPE_MESH_LOCAL_NACK: | 1066 | case GNUNET_MESSAGE_TYPE_MESH_LOCAL_NACK: |
1067 | process_channel_destroy (h, (struct GNUNET_MESH_ChannelMessage *) msg); | 1067 | process_channel_destroy (h, (struct GNUNET_MESH_ChannelMessage *) msg); |
1068 | break; | 1068 | break; |