aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2013-07-16 00:00:16 +0000
committerBart Polot <bart@net.in.tum.de>2013-07-16 00:00:16 +0000
commit6a600aefa069d8555fe8a8ee5cf080fef52b9422 (patch)
tree9a813a8ee8e8b31b48116da984ee680a2f7cdae7 /src
parenta2e6202def3f10d91b2f3ac1731c772a982a35b5 (diff)
downloadgnunet-6a600aefa069d8555fe8a8ee5cf080fef52b9422.tar.gz
gnunet-6a600aefa069d8555fe8a8ee5cf080fef52b9422.zip
- use same options everywhere
Diffstat (limited to 'src')
-rw-r--r--src/include/gnunet_mesh_service.h4
-rw-r--r--src/mesh/mesh_api.c6
2 files changed, 5 insertions, 5 deletions
diff --git a/src/include/gnunet_mesh_service.h b/src/include/gnunet_mesh_service.h
index 1f6f69a59..de95dff7d 100644
--- a/src/include/gnunet_mesh_service.h
+++ b/src/include/gnunet_mesh_service.h
@@ -228,7 +228,7 @@ GNUNET_MESH_disconnect (struct GNUNET_MESH_Handle *handle);
228 * @param tunnel_ctx client's tunnel context to associate with the tunnel 228 * @param tunnel_ctx client's tunnel context to associate with the tunnel
229 * @param peer peer identity the tunnel should go to 229 * @param peer peer identity the tunnel should go to
230 * @param port Port number. 230 * @param port Port number.
231 * @param buffer Flag for buffering on relay nodes. 231 * @param nobuffer Flag for disabling buffering on relay nodes.
232 * @param reliable Flag for end-to-end reliability. 232 * @param reliable Flag for end-to-end reliability.
233 * 233 *
234 * @return handle to the tunnel 234 * @return handle to the tunnel
@@ -238,7 +238,7 @@ GNUNET_MESH_tunnel_create (struct GNUNET_MESH_Handle *h,
238 void *tunnel_ctx, 238 void *tunnel_ctx,
239 const struct GNUNET_PeerIdentity *peer, 239 const struct GNUNET_PeerIdentity *peer,
240 uint32_t port, 240 uint32_t port,
241 int buffer, 241 int nobuffer,
242 int reliable); 242 int reliable);
243 243
244 244
diff --git a/src/mesh/mesh_api.c b/src/mesh/mesh_api.c
index db3af28cc..965cd6baf 100644
--- a/src/mesh/mesh_api.c
+++ b/src/mesh/mesh_api.c
@@ -1409,7 +1409,7 @@ GNUNET_MESH_disconnect (struct GNUNET_MESH_Handle *handle)
1409 * @param tunnel_ctx client's tunnel context to associate with the tunnel 1409 * @param tunnel_ctx client's tunnel context to associate with the tunnel
1410 * @param peer peer identity the tunnel should go to 1410 * @param peer peer identity the tunnel should go to
1411 * @param port Port number. 1411 * @param port Port number.
1412 * @param buffer Flag for buffering on relay nodes. 1412 * @param nobuffer Flag for disabling buffering on relay nodes.
1413 * @param reliable Flag for end-to-end reliability. 1413 * @param reliable Flag for end-to-end reliability.
1414 * 1414 *
1415 * @return handle to the tunnel 1415 * @return handle to the tunnel
@@ -1419,7 +1419,7 @@ GNUNET_MESH_tunnel_create (struct GNUNET_MESH_Handle *h,
1419 void *tunnel_ctx, 1419 void *tunnel_ctx,
1420 const struct GNUNET_PeerIdentity *peer, 1420 const struct GNUNET_PeerIdentity *peer,
1421 uint32_t port, 1421 uint32_t port,
1422 int buffer, 1422 int nobuffer,
1423 int reliable) 1423 int reliable)
1424{ 1424{
1425 struct GNUNET_MESH_Tunnel *t; 1425 struct GNUNET_MESH_Tunnel *t;
@@ -1439,7 +1439,7 @@ GNUNET_MESH_tunnel_create (struct GNUNET_MESH_Handle *h,
1439 msg.opt = 0; 1439 msg.opt = 0;
1440 if (GNUNET_YES == reliable) 1440 if (GNUNET_YES == reliable)
1441 msg.opt |= GNUNET_MESH_OPTION_RELIABLE; 1441 msg.opt |= GNUNET_MESH_OPTION_RELIABLE;
1442 if (GNUNET_NO == buffer) 1442 if (GNUNET_YES == nobuffer)
1443 msg.opt |= GNUNET_MESH_OPTION_NOBUFFER; 1443 msg.opt |= GNUNET_MESH_OPTION_NOBUFFER;
1444 msg.opt = htonl (msg.opt); 1444 msg.opt = htonl (msg.opt);
1445 t->allow_send = 0; 1445 t->allow_send = 0;