Adam Ierymenko 8 lat temu
rodzic
commit
1f9414a30f
2 zmienionych plików z 1 dodań i 19 usunięć
  1. 0 18
      include/ZeroTierOne.h
  2. 1 1
      osdep/OSUtils.cpp

+ 0 - 18
include/ZeroTierOne.h

@@ -139,24 +139,6 @@ extern "C" {
  */
  */
 #define ZT_MAX_CAPABILITY_CUSTODY_CHAIN_LENGTH 7
 #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)
  * Maximum value for link quality (min is 0)
  */
  */

+ 1 - 1
osdep/OSUtils.cpp

@@ -287,7 +287,7 @@ int64_t OSUtils::getFileSize(const char *path)
 
 
 bool OSUtils::readFile(const char *path,std::string &buf)
 bool OSUtils::readFile(const char *path,std::string &buf)
 {
 {
-	char tmp[1024];
+	char tmp[16384];
 	FILE *f = fopen(path,"rb");
 	FILE *f = fopen(path,"rb");
 	if (f) {
 	if (f) {
 		for(;;) {
 		for(;;) {