mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
gnrc/tcp : Move GNRC_TCP_DEFAULT_WINDOW to 'CONFIG_'
This commit is contained in:
parent
49df2258e3
commit
badeb74d16
@ -86,8 +86,8 @@ extern "C" {
|
|||||||
/**
|
/**
|
||||||
* @brief Default receive window size
|
* @brief Default receive window size
|
||||||
*/
|
*/
|
||||||
#ifndef GNRC_TCP_DEFAULT_WINDOW
|
#ifndef CONFIG_GNRC_TCP_DEFAULT_WINDOW
|
||||||
#define GNRC_TCP_DEFAULT_WINDOW (CONFIG_GNRC_TCP_MSS * CONFIG_GNRC_TCP_MSS_MULTIPLICATOR)
|
#define CONFIG_GNRC_TCP_DEFAULT_WINDOW (CONFIG_GNRC_TCP_MSS * CONFIG_GNRC_TCP_MSS_MULTIPLICATOR)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -104,7 +104,7 @@ extern "C" {
|
|||||||
* @brief Default receive buffer size
|
* @brief Default receive buffer size
|
||||||
*/
|
*/
|
||||||
#ifndef GNRC_TCP_RCV_BUF_SIZE
|
#ifndef GNRC_TCP_RCV_BUF_SIZE
|
||||||
#define GNRC_TCP_RCV_BUF_SIZE (GNRC_TCP_DEFAULT_WINDOW)
|
#define GNRC_TCP_RCV_BUF_SIZE (CONFIG_GNRC_TCP_DEFAULT_WINDOW)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -222,7 +222,7 @@ static int _fsm_call_open(gnrc_tcp_tcb_t *tcb)
|
|||||||
int ret = 0;
|
int ret = 0;
|
||||||
|
|
||||||
DEBUG("gnrc_tcp_fsm.c : _fsm_call_open()\n");
|
DEBUG("gnrc_tcp_fsm.c : _fsm_call_open()\n");
|
||||||
tcb->rcv_wnd = GNRC_TCP_DEFAULT_WINDOW;
|
tcb->rcv_wnd = CONFIG_GNRC_TCP_DEFAULT_WINDOW;
|
||||||
|
|
||||||
if (tcb->status & STATUS_PASSIVE) {
|
if (tcb->status & STATUS_PASSIVE) {
|
||||||
/* Passive open, T: CLOSED -> LISTEN */
|
/* Passive open, T: CLOSED -> LISTEN */
|
||||||
|
Loading…
Reference in New Issue
Block a user