From c175eba3c46ee3b3ec344614781b0491aa20ae54 Mon Sep 17 00:00:00 2001 From: Bart Polot Date: Sat, 18 Aug 2012 02:35:52 +0000 Subject: [PATCH] - initialize recv pid, reset on reconncet --- src/mesh/mesh_api.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/mesh/mesh_api.c b/src/mesh/mesh_api.c index 2f6ac26a1..412180aa5 100644 --- a/src/mesh/mesh_api.c +++ b/src/mesh/mesh_api.c @@ -455,6 +455,7 @@ create_tunnel (struct GNUNET_MESH_Handle *h, MESH_TunnelNumber tid) t->tid = tid; } t->max_send_pid = 0; + t->last_recv_pid = (uint32_t) -1; return t; } @@ -835,6 +836,9 @@ do_reconnect (struct GNUNET_MESH_Handle *h) */ continue; } + t->next_send_pid = 0; + t->max_send_pid = 0; + t->last_recv_pid = (uint32_t) -1; tmsg.header.type = htons (GNUNET_MESSAGE_TYPE_MESH_LOCAL_TUNNEL_CREATE); tmsg.header.size = htons (sizeof (struct GNUNET_MESH_TunnelMessage)); tmsg.tunnel_id = htonl (t->tid); -- 2.25.1