[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r23173 - gnunet/src/mesh
From: |
gnunet |
Subject: |
[GNUnet-SVN] r23173 - gnunet/src/mesh |
Date: |
Thu, 9 Aug 2012 14:10:03 +0200 |
Author: bartpolot
Date: 2012-08-09 14:10:03 +0200 (Thu, 09 Aug 2012)
New Revision: 23173
Modified:
gnunet/src/mesh/gnunet-service-mesh.c
Log:
- fix PID sequence
Modified: gnunet/src/mesh/gnunet-service-mesh.c
===================================================================
--- gnunet/src/mesh/gnunet-service-mesh.c 2012-08-09 11:24:19 UTC (rev
23172)
+++ gnunet/src/mesh/gnunet-service-mesh.c 2012-08-09 12:10:03 UTC (rev
23173)
@@ -4100,8 +4100,10 @@
t->bck_queue_max = t->fwd_queue_max;
t->tree = tree_new (owner);
t->owner = client;
- t->bck_ack = INITIAL_WINDOW_SIZE;
- t->last_fwd_ack = INITIAL_WINDOW_SIZE;
+ t->fwd_pid = (uint32_t) -1; // Next (expected) = 0
+ t->bck_pid = (uint32_t) -1; // Next (expected) = 0
+ t->bck_ack = INITIAL_WINDOW_SIZE - 1;
+ t->last_fwd_ack = INITIAL_WINDOW_SIZE - 1;
t->local_tid = local;
t->children_fc = GNUNET_CONTAINER_multihashmap_create (8);
n_tunnels++;
@@ -6870,7 +6872,13 @@
copy->oid = my_full_id;
copy->tid = htonl (t->id.tid);
copy->ttl = htonl (default_ttl);
- GNUNET_assert (ntohl (copy->pid) == (t->fwd_pid + 1));
+ if (ntohl (copy->pid) != t->fwd_pid + 1)
+ {
+ GNUNET_break (0);
+ GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
+ "Unicast PID, expected %u, got %u\n",
+ t->fwd_pid + 1, ntohl (copy->pid));
+ }
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
" calling generic handler...\n");
handle_mesh_data_unicast (NULL, &my_full_id, ©->header, NULL, 0);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r23173 - gnunet/src/mesh,
gnunet <=