aboutsummaryrefslogtreecommitdiff
path: root/src/mesh/gnunet-service-mesh-new.c
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2013-05-14 12:15:49 +0000
committerBart Polot <bart@net.in.tum.de>2013-05-14 12:15:49 +0000
commit78a2c0ed897f0c3c8abaaaafd9a714f56c258681 (patch)
treee373bd5de3e1a40a7cb3ff7d212762041693a228 /src/mesh/gnunet-service-mesh-new.c
parent451cd0f4b56013d76c818dff06738e1b31fed0b5 (diff)
downloadgnunet-78a2c0ed897f0c3c8abaaaafd9a714f56c258681.tar.gz
gnunet-78a2c0ed897f0c3c8abaaaafd9a714f56c258681.zip
- dont use per-hop packet ID
Diffstat (limited to 'src/mesh/gnunet-service-mesh-new.c')
-rw-r--r--src/mesh/gnunet-service-mesh-new.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/mesh/gnunet-service-mesh-new.c b/src/mesh/gnunet-service-mesh-new.c
index 657d35829..ccd7aceb4 100644
--- a/src/mesh/gnunet-service-mesh-new.c
+++ b/src/mesh/gnunet-service-mesh-new.c
@@ -1123,16 +1123,11 @@ send_prebuilt_message (const struct GNUNET_MessageHeader *message,
1123 switch (type) 1123 switch (type)
1124 { 1124 {
1125 struct GNUNET_MESH_Unicast *u; 1125 struct GNUNET_MESH_Unicast *u;
1126 struct GNUNET_MESH_ToOrigin *to;
1127 1126
1128 case GNUNET_MESSAGE_TYPE_MESH_UNICAST: 1127 case GNUNET_MESSAGE_TYPE_MESH_UNICAST:
1129 u = (struct GNUNET_MESH_Unicast *) data; 1128 u = (struct GNUNET_MESH_Unicast *) data;
1130 u->ttl = htonl (ntohl (u->ttl) - 1); 1129 u->ttl = htonl (ntohl (u->ttl) - 1);
1131 break; 1130 break;
1132 case GNUNET_MESSAGE_TYPE_MESH_TO_ORIGIN:
1133 to = (struct GNUNET_MESH_ToOrigin *) data;
1134 t->prev_fc.last_pid_sent++; /* FIXME per hop? */
1135 to->pid = htonl (t->prev_fc.last_pid_sent);
1136 } 1131 }
1137 GNUNET_PEER_resolve (peer, &id); 1132 GNUNET_PEER_resolve (peer, &id);
1138 neighbor = peer_get (&id); 1133 neighbor = peer_get (&id);