From 18aea50ca77d8a5931ba4fdb0ad507e12c0f6f7c Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Sat, 2 Sep 2017 16:37:21 +0200 Subject: [*] Continue splitting #defines to clientconfig.h etc. --- src/config.h | 31 ------------------------------- 1 file changed, 31 deletions(-) (limited to 'src/config.h') diff --git a/src/config.h b/src/config.h index 6a03069..9f8ee10 100644 --- a/src/config.h +++ b/src/config.h @@ -33,41 +33,10 @@ // so either the client or server can run in compatibility mode, or they can // cancel the connection right away if the protocol has changed too much #define PROTOCOL_VERSION 2 -// Which is the minimum protocol version the client expects from the server -#define MIN_SUPPORTED_SERVER 2 -// Length of comment fields (for alt server etc.) -#define COMMENT_LENGTH 120 - -// in seconds if not stated otherwise (MS = milliseconds) -#define SOCKET_TIMEOUT_CLIENT_DATA 2 -#define SOCKET_TIMEOUT_CLIENT_DISCOVERY 1 #define NUMBER_SERVERS 8 // Number of alt servers per image/device -#define RTT_THRESHOLD_FACTOR(us) (((us) * 2) / 3) // 2/3 = current to best must be 33% worse -#define RTT_ABSOLUTE_THRESHOLD (80000) // Or 80ms worse -#define RTT_UNREACHABLE 0x7FFFFFFul // Use this value for timeout/unreachable as RTT. Don't set too high or you might get overflows. 0x7FFFFFF = 134 seconds -// This must be a power of two: -#define RTT_BLOCK_SIZE 4096 - -#define STARTUP_MODE_DURATION 30 -// Interval of several repeating tasks (in seconds) -#define TIMER_INTERVAL_PROBE_STARTUP 4 -#define TIMER_INTERVAL_PROBE_NORMAL 22 -#define TIMER_INTERVAL_PROBE_PANIC 2 -#define TIMER_INTERVAL_KEEPALIVE_PACKET 6 - -// Expect a keepalive response every X seconds -#define SOCKET_KEEPALIVE_TIMEOUT 8 - -// Number of unsuccessful alt_server probes before read errors are reported to the block layer -// (ALL servers will be probed this many times) -// Set to 0 to disable -#define PROBE_COUNT_TIMEOUT 0 // +++++ Block Device +++++ -#define KERNEL_SECTOR_SIZE 512 #define DNBD3_BLOCK_SIZE ((uint64_t)4096) // NEVER CHANGE THIS OR THE WORLD WILL END! -#define NUMBER_DEVICES 8 -#define DEFAULT_READ_AHEAD_KB 512 #endif /* CONFIG_H_ */ -- cgit v1.2.3-55-g7522