summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2016-09-09 08:43:58 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2016-09-09 08:43:58 -0700
commit0d4109a9f1f119e336d73039251ad17c0e2a56f4 (patch)
tree7dbed18275342042878db41b7b7484bfb9afa5a1 /include
parent16df2c33631eeb3e123fefa4febf20f202fd476b (diff)
downloadinfinitytier-0d4109a9f1f119e336d73039251ad17c0e2a56f4.tar.gz
infinitytier-0d4109a9f1f119e336d73039251ad17c0e2a56f4.zip
More refactoring to clean up code, and add a gate function to make sure we do not handle OK packets we did not expect. This hardens up a few potential edge cases around security, since such messages might be used to e.g. pollute a cache and DOS under certain conditions.
Diffstat (limited to 'include')
-rw-r--r--include/ZeroTierOne.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/include/ZeroTierOne.h b/include/ZeroTierOne.h
index 0c22ae9d..633db7cf 100644
--- a/include/ZeroTierOne.h
+++ b/include/ZeroTierOne.h
@@ -155,6 +155,11 @@ extern "C" {
#define ZT_CIRCUIT_TEST_MAX_HOP_BREADTH 8
/**
+ * Circuit test report flag: upstream peer authorized in path (e.g. by network COM)
+ */
+#define ZT_CIRCUIT_TEST_REPORT_FLAGS_UPSTREAM_AUTHORIZED_IN_PATH 0x0000000000000001ULL
+
+/**
* Maximum number of cluster members (and max member ID plus one)
*/
#define ZT_CLUSTER_MAX_MEMBERS 128
@@ -1219,17 +1224,12 @@ typedef struct {
uint64_t timestamp;
/**
- * Timestamp on remote device
- */
- uint64_t remoteTimestamp;
-
- /**
* 64-bit packet ID of packet received by the reporting device
*/
uint64_t sourcePacketId;
/**
- * Flags (currently unused, will be zero)
+ * Flags
*/
uint64_t flags;