diff options
-rw-r--r-- | src/mesh/gnunet-service-mesh-new.c | 5 |
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); |