projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0f0ff0d
)
Added TTL and MID initialization to tunnel refresh packets.
author
Bart Polot
<bart@net.in.tum.de>
Thu, 19 Jan 2012 23:17:24 +0000
(23:17 +0000)
committer
Bart Polot
<bart@net.in.tum.de>
Thu, 19 Jan 2012 23:17:24 +0000
(23:17 +0000)
src/mesh/gnunet-service-mesh.c
patch
|
blob
|
history
diff --git
a/src/mesh/gnunet-service-mesh.c
b/src/mesh/gnunet-service-mesh.c
index 79c6cb1b3c2248eda5e1ac9e9d672d89e90beee8..379609c96753cd9c1420aad32e025cdac237488f 100644
(file)
--- a/
src/mesh/gnunet-service-mesh.c
+++ b/
src/mesh/gnunet-service-mesh.c
@@
-3347,6
+3347,9
@@
path_refresh (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
msg->header.type = htons (GNUNET_MESSAGE_TYPE_MESH_MULTICAST);
msg->oid = my_full_id;
msg->tid = htonl (t->id.tid);
+ msg->ttl = htonl (DEFAULT_TTL);
+ msg->mid = htonl (t->mid + 1);
+ t->mid++;
payload = (struct GNUNET_MessageHeader *) &msg[1];
payload->size = htons (sizeof (struct GNUNET_MessageHeader));
payload->type = htons (GNUNET_MESSAGE_TYPE_MESH_PATH_KEEPALIVE);