From c82adc2479b9144ab5aec6a1631d669385219856 Mon Sep 17 00:00:00 2001 From: Bart Polot Date: Sat, 13 Jul 2013 09:10:10 +0000 Subject: [PATCH] - use enum, add out of order option --- src/mesh/mesh.h | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/src/mesh/mesh.h b/src/mesh/mesh.h index 803bf9033..44601754a 100644 --- a/src/mesh/mesh.h +++ b/src/mesh/mesh.h @@ -91,8 +91,24 @@ extern "C" /** * Value in tunnel info: *int (GNUNET_YES/GNUNET_NO) */ -#define GNUNET_MESH_OPTION_NOBUFFER 0x1 -#define GNUNET_MESH_OPTION_RELIABLE 0x2 +typedef enum +{ + /** + * Disable buffering on intermediate nodes (for minimum latency). + */ + GNUNET_MESH_OPTION_NOBUFFER = 0x1, + + /** + * Enable tunnel reliability, lost messages will be retransmitted. + */ + GNUNET_MESH_OPTION_RELIABLE = 0x2, + + /** + * Enable out of order delivery of messages. + */ + GNUNET_MESH_OPTION_OOORDER = 0x4 + +} MeshTunnelOption; #define PID_OVERFLOW(pid, max) (pid > HIGH_PID && max < LOW_PID) -- 2.25.1