diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-10-05 15:09:28 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-10-05 15:09:28 +0200 |
commit | c4e9ba925ffd758aaa3feee2ccfc0b76f26fe207 (patch) | |
tree | cac3ce030d77b4cbe7c7dc62ed58cfe6d24f73e1 /src/include/gnunet_constants.h | |
parent | fbb71d527c7d6babf269a8fefce1db291b9f7068 (diff) | |
download | gnunet-c4e9ba925ffd758aaa3feee2ccfc0b76f26fe207.tar.gz gnunet-c4e9ba925ffd758aaa3feee2ccfc0b76f26fe207.zip |
global reindent, now with uncrustify hook enabled
Diffstat (limited to 'src/include/gnunet_constants.h')
-rw-r--r-- | src/include/gnunet_constants.h | 29 |
1 files changed, 19 insertions, 10 deletions
diff --git a/src/include/gnunet_constants.h b/src/include/gnunet_constants.h index 39dbd4425..e2678a60e 100644 --- a/src/include/gnunet_constants.h +++ b/src/include/gnunet_constants.h | |||
@@ -48,35 +48,40 @@ 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 ( \ |
58 | GNUNET_TIME_UNIT_MINUTES, 5) | ||
58 | 59 | ||
59 | /** | 60 | /** |
60 | * How long do we delay reading more from a peer after a quota violation? | 61 | * How long do we delay reading more from a peer after a quota violation? |
61 | */ | 62 | */ |
62 | #define GNUNET_CONSTANTS_QUOTA_VIOLATION_TIMEOUT GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_SECONDS, 2) | 63 | #define GNUNET_CONSTANTS_QUOTA_VIOLATION_TIMEOUT GNUNET_TIME_relative_multiply ( \ |
64 | GNUNET_TIME_UNIT_SECONDS, 2) | ||
63 | 65 | ||
64 | /** | 66 | /** |
65 | * After how long do we consider a service unresponsive | 67 | * After how long do we consider a service unresponsive |
66 | * even if we assume that the service commonly does not | 68 | * even if we assume that the service commonly does not |
67 | * respond instantly (DNS, Database, etc.). | 69 | * respond instantly (DNS, Database, etc.). |
68 | */ | 70 | */ |
69 | #define GNUNET_CONSTANTS_SERVICE_TIMEOUT GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_MINUTES, 10) | 71 | #define GNUNET_CONSTANTS_SERVICE_TIMEOUT GNUNET_TIME_relative_multiply ( \ |
72 | GNUNET_TIME_UNIT_MINUTES, 10) | ||
70 | 73 | ||
71 | /** | 74 | /** |
72 | * How long do we delay messages to get larger packet sizes (CORKing)? | 75 | * How long do we delay messages to get larger packet sizes (CORKing)? |
73 | */ | 76 | */ |
74 | #define GNUNET_CONSTANTS_MAX_CORK_DELAY GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_SECONDS, 1) | 77 | #define GNUNET_CONSTANTS_MAX_CORK_DELAY GNUNET_TIME_relative_multiply ( \ |
78 | GNUNET_TIME_UNIT_SECONDS, 1) | ||
75 | 79 | ||
76 | /** | 80 | /** |
77 | * After what amount of latency for a message do we print a warning? | 81 | * After what amount of latency for a message do we print a warning? |
78 | */ | 82 | */ |
79 | #define GNUNET_CONSTANTS_LATENCY_WARN GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_SECONDS, 3) | 83 | #define GNUNET_CONSTANTS_LATENCY_WARN GNUNET_TIME_relative_multiply ( \ |
84 | GNUNET_TIME_UNIT_SECONDS, 3) | ||
80 | 85 | ||
81 | /** | 86 | /** |
82 | * Until which load do we consider the peer overly idle | 87 | * Until which load do we consider the peer overly idle |
@@ -100,20 +105,23 @@ extern "C" | |||
100 | * validated? This value is also used for our own addresses when we | 105 | * validated? This value is also used for our own addresses when we |
101 | * create a HELLO. | 106 | * create a HELLO. |
102 | */ | 107 | */ |
103 | #define GNUNET_CONSTANTS_HELLO_ADDRESS_EXPIRATION GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_HOURS, 12) | 108 | #define GNUNET_CONSTANTS_HELLO_ADDRESS_EXPIRATION GNUNET_TIME_relative_multiply ( \ |
109 | GNUNET_TIME_UNIT_HOURS, 12) | ||
104 | 110 | ||
105 | 111 | ||
106 | /** | 112 | /** |
107 | * How long do we cache records at most in the DHT? | 113 | * How long do we cache records at most in the DHT? |
108 | */ | 114 | */ |
109 | #define GNUNET_CONSTANTS_DHT_MAX_EXPIRATION GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_HOURS, 24) | 115 | #define GNUNET_CONSTANTS_DHT_MAX_EXPIRATION GNUNET_TIME_relative_multiply ( \ |
116 | GNUNET_TIME_UNIT_HOURS, 24) | ||
110 | 117 | ||
111 | 118 | ||
112 | /** | 119 | /** |
113 | * Size of the `struct EncryptedMessage` of the core (which | 120 | * Size of the `struct EncryptedMessage` of the core (which |
114 | * is the per-message overhead of the core). | 121 | * is the per-message overhead of the core). |
115 | */ | 122 | */ |
116 | #define GNUNET_CONSTANTS_CORE_SIZE_ENCRYPTED_MESSAGE (24 + sizeof(struct GNUNET_HashCode)) | 123 | #define GNUNET_CONSTANTS_CORE_SIZE_ENCRYPTED_MESSAGE (24 + sizeof(struct \ |
124 | GNUNET_HashCode)) | ||
117 | 125 | ||
118 | /** | 126 | /** |
119 | * What is the maximum size for encrypted messages? Note that this | 127 | * What is the maximum size for encrypted messages? Note that this |
@@ -141,7 +149,8 @@ extern "C" | |||
141 | * Maximum message size that can be sent on CADET. | 149 | * Maximum message size that can be sent on CADET. |
142 | */ | 150 | */ |
143 | #define GNUNET_CONSTANTS_MAX_CADET_MESSAGE_SIZE \ | 151 | #define GNUNET_CONSTANTS_MAX_CADET_MESSAGE_SIZE \ |
144 | (GNUNET_CONSTANTS_MAX_ENCRYPTED_MESSAGE_SIZE - GNUNET_CONSTANTS_CADET_P2P_OVERHEAD) | 152 | (GNUNET_CONSTANTS_MAX_ENCRYPTED_MESSAGE_SIZE \ |
153 | - GNUNET_CONSTANTS_CADET_P2P_OVERHEAD) | ||
145 | 154 | ||
146 | /** | 155 | /** |
147 | * Largest block that can be stored in the DHT. | 156 | * Largest block that can be stored in the DHT. |