aboutsummaryrefslogtreecommitdiff
path: root/src/transport/gnunet-service-transport_manipulation.c
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2013-02-05 15:50:33 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2013-02-05 15:50:33 +0000
commitbd5e9a8250e9f1d30a8a8c772a84307ff0eb7fb2 (patch)
treefcbd95e4c2f6e229e3dafa16d4a846b2dd8b4d9d /src/transport/gnunet-service-transport_manipulation.c
parent9ea6140052f8340045bf0b363030a1e6ab79a435 (diff)
downloadgnunet-bd5e9a8250e9f1d30a8a8c772a84307ff0eb7fb2.tar.gz
gnunet-bd5e9a8250e9f1d30a8a8c772a84307ff0eb7fb2.zip
fixes
Diffstat (limited to 'src/transport/gnunet-service-transport_manipulation.c')
-rw-r--r--src/transport/gnunet-service-transport_manipulation.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/transport/gnunet-service-transport_manipulation.c b/src/transport/gnunet-service-transport_manipulation.c
index 74f903c98..c00d2b64e 100644
--- a/src/transport/gnunet-service-transport_manipulation.c
+++ b/src/transport/gnunet-service-transport_manipulation.c
@@ -263,9 +263,7 @@ GST_manipulation_recv (void *cls, const struct GNUNET_PeerIdentity *peer,
263 /* Set distance */ 263 /* Set distance */
264 if ((ntohl(ats[d].type) == GNUNET_ATS_QUALITY_NET_DISTANCE) && 264 if ((ntohl(ats[d].type) == GNUNET_ATS_QUALITY_NET_DISTANCE) &&
265 (UINT32_MAX != tmp->metrics[TM_RECEIVE][DISTANCE])) 265 (UINT32_MAX != tmp->metrics[TM_RECEIVE][DISTANCE]))
266 {
267 ats_new[d].value = htonl(tmp->metrics[TM_RECEIVE][DISTANCE]); 266 ats_new[d].value = htonl(tmp->metrics[TM_RECEIVE][DISTANCE]);
268 }
269 } 267 }
270 /* Manipulate receive delay */ 268 /* Manipulate receive delay */
271 if (UINT32_MAX != tmp->metrics[TM_RECEIVE][DELAY]) 269 if (UINT32_MAX != tmp->metrics[TM_RECEIVE][DELAY])
@@ -283,6 +281,9 @@ GST_manipulation_recv (void *cls, const struct GNUNET_PeerIdentity *peer,
283 return m_delay; 281 return m_delay;
284 } 282 }
285 } 283 }
284 else
285 return GST_receive_callback (cls, peer, message, &ats_new[0], ats_count,
286 session, sender_address, sender_address_len);
286 } 287 }
287 288
288 return GST_receive_callback (cls, peer, message, ats, ats_count, 289 return GST_receive_callback (cls, peer, message, ats, ats_count,