Loading...
Searching...
No Matches
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
9#pragma once
10
21
22#include "timex.h"
23
24#ifdef __cplusplus
25extern "C" {
26#endif
27
57#ifndef CONFIG_GNRC_TCP_CONNECTION_TIMEOUT_DURATION_MS
58#define CONFIG_GNRC_TCP_CONNECTION_TIMEOUT_DURATION_MS (120U * MS_PER_SEC)
59#endif
60
64#ifndef CONFIG_GNRC_TCP_MSL_MS
65#define CONFIG_GNRC_TCP_MSL_MS (30U * MS_PER_SEC)
66#endif
67
71#ifndef CONFIG_GNRC_TCP_MSS
72#ifdef MODULE_GNRC_IPV6
73#define CONFIG_GNRC_TCP_MSS (1220U)
74#else
75#define CONFIG_GNRC_TCP_MSS (576U)
76#endif
77#endif
78
82#ifndef CONFIG_GNRC_TCP_MSS_MULTIPLICATOR
83#define CONFIG_GNRC_TCP_MSS_MULTIPLICATOR (1U)
84#endif
85
89#ifndef CONFIG_GNRC_TCP_DEFAULT_WINDOW
90#define CONFIG_GNRC_TCP_DEFAULT_WINDOW (CONFIG_GNRC_TCP_MSS * CONFIG_GNRC_TCP_MSS_MULTIPLICATOR)
91#endif
92
99#ifndef CONFIG_GNRC_TCP_RCV_BUFFERS
100#define CONFIG_GNRC_TCP_RCV_BUFFERS (1U)
101#endif
102
106#ifndef GNRC_TCP_RCV_BUF_SIZE
107#define GNRC_TCP_RCV_BUF_SIZE (CONFIG_GNRC_TCP_DEFAULT_WINDOW)
108#endif
109
117#ifndef CONFIG_GNRC_TCP_RTO_LOWER_BOUND_MS
118#define CONFIG_GNRC_TCP_RTO_LOWER_BOUND_MS (1U * MS_PER_SEC)
119#endif
120
124#ifndef CONFIG_GNRC_TCP_RTO_UPPER_BOUND_MS
125#define CONFIG_GNRC_TCP_RTO_UPPER_BOUND_MS (60U * MS_PER_SEC)
126#endif
127
131#ifndef CONFIG_GNRC_TCP_RTO_GRANULARITY_MS
132#define CONFIG_GNRC_TCP_RTO_GRANULARITY_MS (10U)
133#endif
134
138#ifndef CONFIG_GNRC_TCP_RTO_A_DIV
139#define CONFIG_GNRC_TCP_RTO_A_DIV (8U)
140#endif
141
145#ifndef CONFIG_GNRC_TCP_RTO_B_DIV
146#define CONFIG_GNRC_TCP_RTO_B_DIV (4U)
147#endif
148
152#ifndef CONFIG_GNRC_TCP_RTO_K
153#define CONFIG_GNRC_TCP_RTO_K (4U)
154#endif
155
159#ifndef CONFIG_GNRC_TCP_PROBE_LOWER_BOUND_MS
160#define CONFIG_GNRC_TCP_PROBE_LOWER_BOUND_MS (1U * MS_PER_SEC)
161#endif
162
166#ifndef CONFIG_GNRC_TCP_PROBE_UPPER_BOUND_MS
167#define CONFIG_GNRC_TCP_PROBE_UPPER_BOUND_MS (60U * MS_PER_SEC)
168#endif
169
175#ifndef CONFIG_GNRC_TCP_MSG_QUEUE_SIZE_EXP
176#define CONFIG_GNRC_TCP_MSG_QUEUE_SIZE_EXP (2U)
177#endif
178
184#ifndef CONFIG_GNRC_TCP_EVENTLOOP_MSG_QUEUE_SIZE_EXP
185#define CONFIG_GNRC_TCP_EVENTLOOP_MSG_QUEUE_SIZE_EXP (3U)
186#endif
187
196#ifndef CONFIG_GNRC_TCP_EXPERIMENTAL_DYN_MSL_EN
197#define CONFIG_GNRC_TCP_EXPERIMENTAL_DYN_MSL_EN 0
198#endif
199
204#ifndef CONFIG_GNRC_TCP_EXPERIMENTAL_DYN_MSL_RTO_MUL
205#define CONFIG_GNRC_TCP_EXPERIMENTAL_DYN_MSL_RTO_MUL (4U)
206#endif
208
209#ifdef __cplusplus
210}
211#endif
212
Utility library for comparing and computing timestamps.