summaryrefslogtreecommitdiff
path: root/src/include/gnunet_constants.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/gnunet_constants.h')
-rw-r--r--src/include/gnunet_constants.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/include/gnunet_constants.h b/src/include/gnunet_constants.h
index 7e4653a97..39dbd4425 100644
--- a/src/include/gnunet_constants.h
+++ b/src/include/gnunet_constants.h
@@ -11,12 +11,12 @@
11 WITHOUT ANY WARRANTY; without even the implied warranty of 11 WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Affero General Public License for more details. 13 Affero General Public License for more details.
14 14
15 You should have received a copy of the GNU Affero General Public License 15 You should have received a copy of the GNU Affero General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>. 16 along with this program. If not, see <http://www.gnu.org/licenses/>.
17 17
18 SPDX-License-Identifier: AGPL3.0-or-later 18 SPDX-License-Identifier: AGPL3.0-or-later
19*/ 19 */
20 20
21/** 21/**
22 * @author Christian Grothoff 22 * @author Christian Grothoff
@@ -48,35 +48,35 @@ extern "C"
48 * so that at least one maximum-size message can be send roughly once 48 * so that at least one maximum-size message can be send roughly once
49 * per minute. 49 * per minute.
50 */ 50 */
51#define GNUNET_CONSTANTS_DEFAULT_BW_IN_OUT GNUNET_BANDWIDTH_value_init (1024) 51#define GNUNET_CONSTANTS_DEFAULT_BW_IN_OUT GNUNET_BANDWIDTH_value_init(1024)
52 52
53/** 53/**
54 * After how long do we consider a connection to a peer dead 54 * After how long do we consider a connection to a peer dead
55 * if we don't receive messages from the peer? 55 * if we don't receive messages from the peer?
56 */ 56 */
57#define GNUNET_CONSTANTS_IDLE_CONNECTION_TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_MINUTES, 5) 57#define GNUNET_CONSTANTS_IDLE_CONNECTION_TIMEOUT GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_MINUTES, 5)
58 58
59/** 59/**
60 * How long do we delay reading more from a peer after a quota violation? 60 * How long do we delay reading more from a peer after a quota violation?
61 */ 61 */
62#define GNUNET_CONSTANTS_QUOTA_VIOLATION_TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 2) 62#define GNUNET_CONSTANTS_QUOTA_VIOLATION_TIMEOUT GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_SECONDS, 2)
63 63
64/** 64/**
65 * After how long do we consider a service unresponsive 65 * After how long do we consider a service unresponsive
66 * even if we assume that the service commonly does not 66 * even if we assume that the service commonly does not
67 * respond instantly (DNS, Database, etc.). 67 * respond instantly (DNS, Database, etc.).
68 */ 68 */
69#define GNUNET_CONSTANTS_SERVICE_TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_MINUTES, 10) 69#define GNUNET_CONSTANTS_SERVICE_TIMEOUT GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_MINUTES, 10)
70 70
71/** 71/**
72 * How long do we delay messages to get larger packet sizes (CORKing)? 72 * How long do we delay messages to get larger packet sizes (CORKing)?
73 */ 73 */
74#define GNUNET_CONSTANTS_MAX_CORK_DELAY GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 1) 74#define GNUNET_CONSTANTS_MAX_CORK_DELAY GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_SECONDS, 1)
75 75
76/** 76/**
77 * After what amount of latency for a message do we print a warning? 77 * After what amount of latency for a message do we print a warning?
78 */ 78 */
79#define GNUNET_CONSTANTS_LATENCY_WARN GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 3) 79#define GNUNET_CONSTANTS_LATENCY_WARN GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_SECONDS, 3)
80 80
81/** 81/**
82 * Until which load do we consider the peer overly idle 82 * Until which load do we consider the peer overly idle
@@ -100,20 +100,20 @@ extern "C"
100 * validated? This value is also used for our own addresses when we 100 * validated? This value is also used for our own addresses when we
101 * create a HELLO. 101 * create a HELLO.
102 */ 102 */
103#define GNUNET_CONSTANTS_HELLO_ADDRESS_EXPIRATION GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_HOURS, 12) 103#define GNUNET_CONSTANTS_HELLO_ADDRESS_EXPIRATION GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_HOURS, 12)
104 104
105 105
106/** 106/**
107 * How long do we cache records at most in the DHT? 107 * How long do we cache records at most in the DHT?
108 */ 108 */
109#define GNUNET_CONSTANTS_DHT_MAX_EXPIRATION GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_HOURS, 24) 109#define GNUNET_CONSTANTS_DHT_MAX_EXPIRATION GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_HOURS, 24)
110 110
111 111
112/** 112/**
113 * Size of the `struct EncryptedMessage` of the core (which 113 * Size of the `struct EncryptedMessage` of the core (which
114 * is the per-message overhead of the core). 114 * is the per-message overhead of the core).
115 */ 115 */
116#define GNUNET_CONSTANTS_CORE_SIZE_ENCRYPTED_MESSAGE (24 + sizeof (struct GNUNET_HashCode)) 116#define GNUNET_CONSTANTS_CORE_SIZE_ENCRYPTED_MESSAGE (24 + sizeof(struct GNUNET_HashCode))
117 117
118/** 118/**
119 * What is the maximum size for encrypted messages? Note that this 119 * What is the maximum size for encrypted messages? Note that this
@@ -141,7 +141,7 @@ extern "C"
141 * Maximum message size that can be sent on CADET. 141 * Maximum message size that can be sent on CADET.
142 */ 142 */
143#define GNUNET_CONSTANTS_MAX_CADET_MESSAGE_SIZE \ 143#define GNUNET_CONSTANTS_MAX_CADET_MESSAGE_SIZE \
144(GNUNET_CONSTANTS_MAX_ENCRYPTED_MESSAGE_SIZE - GNUNET_CONSTANTS_CADET_P2P_OVERHEAD) 144 (GNUNET_CONSTANTS_MAX_ENCRYPTED_MESSAGE_SIZE - GNUNET_CONSTANTS_CADET_P2P_OVERHEAD)
145 145
146/** 146/**
147 * Largest block that can be stored in the DHT. 147 * Largest block that can be stored in the DHT.