aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2013-07-08 12:55:53 +0000
committerBart Polot <bart@net.in.tum.de>2013-07-08 12:55:53 +0000
commit841ae849e06fe0a52f9a702bb7cb8e343aaa5845 (patch)
tree90409f81c34d2c6b1f2688a2102c31e1c26c8b94 /src
parent606590f7505aad9bef042a2477dfa81f98dbea57 (diff)
downloadgnunet-841ae849e06fe0a52f9a702bb7cb8e343aaa5845.tar.gz
gnunet-841ae849e06fe0a52f9a702bb7cb8e343aaa5845.zip
- debug, indentation
Diffstat (limited to 'src')
-rw-r--r--src/mesh/mesh_api.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/mesh/mesh_api.c b/src/mesh/mesh_api.c
index 6c579f1a0..b9f6bf9c2 100644
--- a/src/mesh/mesh_api.c
+++ b/src/mesh/mesh_api.c
@@ -984,19 +984,17 @@ process_ack (struct GNUNET_MESH_Handle *h,
984{ 984{
985 struct GNUNET_MESH_LocalAck *msg; 985 struct GNUNET_MESH_LocalAck *msg;
986 struct GNUNET_MESH_Tunnel *t; 986 struct GNUNET_MESH_Tunnel *t;
987 MESH_TunnelNumber tid;
987 uint32_t ack; 988 uint32_t ack;
988 989
989 LOG (GNUNET_ERROR_TYPE_DEBUG, "Got an ACK!\n"); 990 LOG (GNUNET_ERROR_TYPE_DEBUG, "Got an ACK!\n");
990 h->acks_recv++; 991 h->acks_recv++;
991 msg = (struct GNUNET_MESH_LocalAck *) message; 992 msg = (struct GNUNET_MESH_LocalAck *) message;
992 993 tid = ntohl (msg->tunnel_id);
993 t = retrieve_tunnel (h, ntohl (msg->tunnel_id)); 994 t = retrieve_tunnel (h, tid);
994
995 if (NULL == t) 995 if (NULL == t)
996 { 996 {
997 LOG (GNUNET_ERROR_TYPE_WARNING, 997 LOG (GNUNET_ERROR_TYPE_WARNING, "ACK on unknown tunnel %X\n", tid);
998 "ACK on unknown tunnel %X\n",
999 ntohl (msg->tunnel_id));
1000 return; 998 return;
1001 } 999 }
1002 ack = ntohl (msg->ack); 1000 ack = ntohl (msg->ack);
@@ -1142,10 +1140,10 @@ msg_received (void *cls, const struct GNUNET_MessageHeader *msg)
1142 process_ack (h, msg); 1140 process_ack (h, msg);
1143 break; 1141 break;
1144 case GNUNET_MESSAGE_TYPE_MESH_LOCAL_INFO_TUNNELS: 1142 case GNUNET_MESSAGE_TYPE_MESH_LOCAL_INFO_TUNNELS:
1145 process_get_tunnels (h, msg); 1143 process_get_tunnels (h, msg);
1146 break; 1144 break;
1147 case GNUNET_MESSAGE_TYPE_MESH_LOCAL_INFO_TUNNEL: 1145 case GNUNET_MESSAGE_TYPE_MESH_LOCAL_INFO_TUNNEL:
1148 process_show_tunnel (h, msg); 1146 process_show_tunnel (h, msg);
1149 break; 1147 break;
1150 default: 1148 default:
1151 /* We shouldn't get any other packages, log and ignore */ 1149 /* We shouldn't get any other packages, log and ignore */