mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +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
|
||||
*/
|
||||
#ifndef GNRC_TCP_DEFAULT_WINDOW
|
||||
#define GNRC_TCP_DEFAULT_WINDOW (CONFIG_GNRC_TCP_MSS * CONFIG_GNRC_TCP_MSS_MULTIPLICATOR)
|
||||
#ifndef CONFIG_GNRC_TCP_DEFAULT_WINDOW
|
||||
#define CONFIG_GNRC_TCP_DEFAULT_WINDOW (CONFIG_GNRC_TCP_MSS * CONFIG_GNRC_TCP_MSS_MULTIPLICATOR)
|
||||
#endif
|
||||
|
||||
/**
|
||||
@ -104,7 +104,7 @@ extern "C" {
|
||||
* @brief Default receive buffer 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
|
||||
|
||||
/**
|
||||
|
@ -222,7 +222,7 @@ static int _fsm_call_open(gnrc_tcp_tcb_t *tcb)
|
||||
int ret = 0;
|
||||
|
||||
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) {
|
||||
/* Passive open, T: CLOSED -> LISTEN */
|
||||
|
Loading…
Reference in New Issue
Block a user