config.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2015-2017 Simon Brummer
3  *
4  * This file is subject to the terms and conditions of the GNU Lesser
5  * General Public License v2.1. See the file LICENSE in the top level
6  * directory for more details.
7  */
8 
20 #ifndef NET_GNRC_TCP_CONFIG_H
21 #define NET_GNRC_TCP_CONFIG_H
22 
23 #include "timex.h"
24 
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28 
32 #ifndef GNRC_TCP_CONNECTION_TIMEOUT_DURATION
33 #define GNRC_TCP_CONNECTION_TIMEOUT_DURATION (120U * US_PER_SEC)
34 #endif
35 
39 #ifndef GNRC_TCP_MSL
40 #define GNRC_TCP_MSL (30U * US_PER_SEC)
41 #endif
42 
46 #ifndef GNRC_TCP_MSS
47 #ifdef MODULE_GNRC_IPV6
48 #define GNRC_TCP_MSS (1220U)
49 #else
50 #define GNRC_TCP_MSS (576U)
51 #endif
52 #endif
53 
57 #ifndef GNRC_TCP_MSS_MULTIPLICATOR
58 #define GNRC_TCP_MSS_MULTIPLICATOR (1U)
59 #endif
60 
64 #ifndef GNRC_TCP_DEFAULT_WINDOW
65 #define GNRC_TCP_DEFAULT_WINDOW (GNRC_TCP_MSS * GNRC_TCP_MSS_MULTIPLICATOR)
66 #endif
67 
71 #ifndef GNRC_TCP_RCV_BUFFERS
72 #define GNRC_TCP_RCV_BUFFERS (1U)
73 #endif
74 
78 #ifndef GNRC_TCP_RCV_BUF_SIZE
79 #define GNRC_TCP_RCV_BUF_SIZE (GNRC_TCP_DEFAULT_WINDOW)
80 #endif
81 
85 #ifndef GNRC_TCP_RTO_LOWER_BOUND
86 #define GNRC_TCP_RTO_LOWER_BOUND (1U * US_PER_SEC)
87 #endif
88 
92 #ifndef GNRC_TCP_RTO_UPPER_BOUND
93 #define GNRC_TCP_RTO_UPPER_BOUND (60U * US_PER_SEC)
94 #endif
95 
99 #ifndef GNRC_TCP_RTO_GRANULARITY
100 #define GNRC_TCP_RTO_GRANULARITY (10U * MS_PER_SEC)
101 #endif
102 
106 #ifndef GNRC_TCP_RTO_A_DIV
107 #define GNRC_TCP_RTO_A_DIV (8U)
108 #endif
109 
113 #ifndef GNRC_TCP_RTO_B_DIV
114 #define GNRC_TCP_RTO_B_DIV (4U)
115 #endif
116 
120 #ifndef GNRC_TCP_RTO_K
121 #define GNRC_TCP_RTO_K (4U)
122 #endif
123 
127 #ifndef GNRC_TCP_PROBE_LOWER_BOUND
128 #define GNRC_TCP_PROBE_LOWER_BOUND (1U * US_PER_SEC)
129 #endif
130 
134 #ifndef GNRC_TCP_PROBE_UPPER_BOUND
135 #define GNRC_TCP_PROBE_UPPER_BOUND (60U * US_PER_SEC)
136 #endif
137 
138 #ifdef __cplusplus
139 }
140 #endif
141 
142 #endif /* NET_GNRC_TCP_CONFIG_H */
143 
Utility library for comparing and computing timestamps.