diff options
Diffstat (limited to 'src/or/or.h')
-rw-r--r-- | src/or/or.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/or/or.h b/src/or/or.h index b08f9988b2..f97302152e 100644 --- a/src/or/or.h +++ b/src/or/or.h @@ -1748,6 +1748,10 @@ typedef struct exit_redirect_t { unsigned is_redirect:1; } exit_redirect_t; +/* limits for TCP send and recv buffer size used for constrained sockets */ +#define MIN_TCPSOCK_BUFFER 2048 +#define MAX_TCPSOCK_BUFFER 262144 /* 256k */ + /** A linked list of lines in a config file. */ typedef struct config_line_t { char *key; @@ -1889,6 +1893,9 @@ typedef struct { config_line_t *ReachableORAddresses; /**< IP:ports for OR conns. */ config_line_t *ReachableDirAddresses; /**< IP:ports for Dir conns. */ + int ConstrainedSockets; /**< Shrink xmit and recv socket buffers. */ + int ConstrainedSockSize; /**< Size of constrained buffers. */ + /** Application ports that require all nodes in circ to have sufficient * uptime. */ smartlist_t *LongLivedPorts; |