summaryrefslogtreecommitdiffstats
path: root/src/config.h
diff options
context:
space:
mode:
authorSimon Rettberg2017-09-02 16:37:21 +0200
committerSimon Rettberg2017-09-02 16:37:21 +0200
commit18aea50ca77d8a5931ba4fdb0ad507e12c0f6f7c (patch)
tree008de7e5bb182f625b3ddc3f7394a9dc440c7e2e /src/config.h
parent[SERVER] Split server-only defs from config.h to serverconfig.h (diff)
downloaddnbd3-18aea50ca77d8a5931ba4fdb0ad507e12c0f6f7c.tar.gz
dnbd3-18aea50ca77d8a5931ba4fdb0ad507e12c0f6f7c.tar.xz
dnbd3-18aea50ca77d8a5931ba4fdb0ad507e12c0f6f7c.zip
[*] Continue splitting #defines to clientconfig.h etc.
Diffstat (limited to 'src/config.h')
-rw-r--r--src/config.h31
1 files changed, 0 insertions, 31 deletions
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_ */