summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2017-06-01 12:38:04 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2017-06-01 12:38:04 -0700
commit1f9414a30f59af1beb8370a3710c7ebdfd300de9 (patch)
treebb3291f707a1b070fbb30088928537a468f4da16
parent6015b529a0a8615a0208b96236d70ba501f327ee (diff)
downloadinfinitytier-1f9414a30f59af1beb8370a3710c7ebdfd300de9.tar.gz
infinitytier-1f9414a30f59af1beb8370a3710c7ebdfd300de9.zip
.
-rw-r--r--include/ZeroTierOne.h18
-rw-r--r--osdep/OSUtils.cpp2
2 files changed, 1 insertions, 19 deletions
diff --git a/include/ZeroTierOne.h b/include/ZeroTierOne.h
index 50c47876..1e6f0ae8 100644
--- a/include/ZeroTierOne.h
+++ b/include/ZeroTierOne.h
@@ -140,24 +140,6 @@ extern "C" {
#define ZT_MAX_CAPABILITY_CUSTODY_CHAIN_LENGTH 7
/**
- * Maximum number of hops in a ZeroTier circuit test
- *
- * This is more or less the max that can be fit in a given packet (with
- * fragmentation) and only one address per hop.
- */
-#define ZT_CIRCUIT_TEST_MAX_HOPS 256
-
-/**
- * Maximum number of addresses per hop in a circuit test
- */
-#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 value for link quality (min is 0)
*/
#define ZT_PATH_LINK_QUALITY_MAX 0xff
diff --git a/osdep/OSUtils.cpp b/osdep/OSUtils.cpp
index b7fce982..53e8bb97 100644
--- a/osdep/OSUtils.cpp
+++ b/osdep/OSUtils.cpp
@@ -287,7 +287,7 @@ int64_t OSUtils::getFileSize(const char *path)
bool OSUtils::readFile(const char *path,std::string &buf)
{
- char tmp[1024];
+ char tmp[16384];
FILE *f = fopen(path,"rb");
if (f) {
for(;;) {