From c599c6512496aecd5b7fa71f86ce030c81fe6c2e Mon Sep 17 00:00:00 2001 From: Akshai M Date: Thu, 14 May 2020 16:43:02 +0530 Subject: [PATCH] gnrc/tcp : Move GNRC_TCP_RTO_UPPER_BOUND to 'CONFIG_' --- sys/include/net/gnrc/tcp/config.h | 4 ++-- sys/net/gnrc/transport_layer/tcp/gnrc_tcp_pkt.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/include/net/gnrc/tcp/config.h b/sys/include/net/gnrc/tcp/config.h index a66edc0fac..5a92a6e041 100644 --- a/sys/include/net/gnrc/tcp/config.h +++ b/sys/include/net/gnrc/tcp/config.h @@ -121,8 +121,8 @@ extern "C" { /** * @brief Upper bound for RTO = 60 sec (see RFC 6298) */ -#ifndef GNRC_TCP_RTO_UPPER_BOUND -#define GNRC_TCP_RTO_UPPER_BOUND (60U * US_PER_SEC) +#ifndef CONFIG_GNRC_TCP_RTO_UPPER_BOUND +#define CONFIG_GNRC_TCP_RTO_UPPER_BOUND (60U * US_PER_SEC) #endif /** diff --git a/sys/net/gnrc/transport_layer/tcp/gnrc_tcp_pkt.c b/sys/net/gnrc/transport_layer/tcp/gnrc_tcp_pkt.c index 1cc5aa5db1..cbf345168e 100644 --- a/sys/net/gnrc/transport_layer/tcp/gnrc_tcp_pkt.c +++ b/sys/net/gnrc/transport_layer/tcp/gnrc_tcp_pkt.c @@ -407,8 +407,8 @@ int _pkt_setup_retransmit(gnrc_tcp_tcb_t *tcb, gnrc_pktsnip_t *pkt, const bool r if (tcb->rto < (int32_t) CONFIG_GNRC_TCP_RTO_LOWER_BOUND) { tcb->rto = CONFIG_GNRC_TCP_RTO_LOWER_BOUND; } - else if (tcb->rto > (int32_t) GNRC_TCP_RTO_UPPER_BOUND) { - tcb->rto = GNRC_TCP_RTO_UPPER_BOUND; + else if (tcb->rto > (int32_t) CONFIG_GNRC_TCP_RTO_UPPER_BOUND) { + tcb->rto = CONFIG_GNRC_TCP_RTO_UPPER_BOUND; } /* Setup retransmission timer, msg to TCP thread with ptr to TCB */