aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2013-07-11 13:03:08 +0000
committerBart Polot <bart@net.in.tum.de>2013-07-11 13:03:08 +0000
commit8a03d1738d8db6293778be8becb6eaf2ed3a9a0a (patch)
treea6f7f72611a1dabb2117824f1cac318ab2043706 /src
parent285181f04d096dd675a3b7538779f0ba7ceb63c6 (diff)
downloadgnunet-8a03d1738d8db6293778be8becb6eaf2ed3a9a0a.tar.gz
gnunet-8a03d1738d8db6293778be8becb6eaf2ed3a9a0a.zip
- more mess from retransmission of data
Diffstat (limited to 'src')
-rw-r--r--src/mesh/gnunet-service-mesh.c6
-rw-r--r--src/mesh/test_mesh_small.c2
2 files changed, 5 insertions, 3 deletions
diff --git a/src/mesh/gnunet-service-mesh.c b/src/mesh/gnunet-service-mesh.c
index 7b5c7fc1b..e61b978f0 100644
--- a/src/mesh/gnunet-service-mesh.c
+++ b/src/mesh/gnunet-service-mesh.c
@@ -3724,7 +3724,8 @@ handle_mesh_unicast (void *cls, const struct GNUNET_PeerIdentity *peer,
3724 tunnel_send_fwd_ack (t, GNUNET_MESSAGE_TYPE_MESH_UNICAST_ACK); 3724 tunnel_send_fwd_ack (t, GNUNET_MESSAGE_TYPE_MESH_UNICAST_ACK);
3725 return GNUNET_OK; 3725 return GNUNET_OK;
3726 } 3726 }
3727 t->prev_fc.last_pid_recv = pid; 3727 if (GMC_is_pid_bigger(pid, t->prev_fc.last_pid_recv))
3728 t->prev_fc.last_pid_recv = pid;
3728 if (0 == t->next_hop) 3729 if (0 == t->next_hop)
3729 { 3730 {
3730 GNUNET_break (0); 3731 GNUNET_break (0);
@@ -3829,7 +3830,8 @@ handle_mesh_to_orig (void *cls, const struct GNUNET_PeerIdentity *peer,
3829 } 3830 }
3830 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 3831 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
3831 " not for us, retransmitting...\n"); 3832 " not for us, retransmitting...\n");
3832 t->next_fc.last_pid_recv = pid; 3833 if (GMC_is_pid_bigger (pid, t->next_fc.last_pid_recv))
3834 t->next_fc.last_pid_recv = pid;
3833 if (0 == t->prev_hop) /* No owner AND no prev hop */ 3835 if (0 == t->prev_hop) /* No owner AND no prev hop */
3834 { 3836 {
3835 if (GNUNET_YES == t->destroy) 3837 if (GNUNET_YES == t->destroy)
diff --git a/src/mesh/test_mesh_small.c b/src/mesh/test_mesh_small.c
index 28d1dba60..a8d019d22 100644
--- a/src/mesh/test_mesh_small.c
+++ b/src/mesh/test_mesh_small.c
@@ -42,7 +42,7 @@
42/** 42/**
43 * Time to wait for stuff that should be rather fast 43 * Time to wait for stuff that should be rather fast
44 */ 44 */
45#define SHORT_TIME GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 20) 45#define SHORT_TIME GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 60)
46 46
47/** 47/**
48 * DIFFERENT TESTS TO RUN 48 * DIFFERENT TESTS TO RUN