1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00

gnrc/tcp : Move GNRC_TCP_RTO_GRANULARITY to 'CONFIG_'

This commit is contained in:
Akshai M 2020-05-14 16:46:49 +05:30
parent c599c65124
commit f25c21988d
2 changed files with 3 additions and 3 deletions

View File

@ -128,8 +128,8 @@ extern "C" {
/** /**
* @brief Assumes clock granularity for TCP of 10 ms (see RFC 6298) * @brief Assumes clock granularity for TCP of 10 ms (see RFC 6298)
*/ */
#ifndef GNRC_TCP_RTO_GRANULARITY #ifndef CONFIG_GNRC_TCP_RTO_GRANULARITY
#define GNRC_TCP_RTO_GRANULARITY (10U * MS_PER_SEC) #define CONFIG_GNRC_TCP_RTO_GRANULARITY (10U * MS_PER_SEC)
#endif #endif
/** /**

View File

@ -388,7 +388,7 @@ int _pkt_setup_retransmit(gnrc_tcp_tcb_t *tcb, gnrc_pktsnip_t *pkt, const bool r
tcb->rto = CONFIG_GNRC_TCP_RTO_LOWER_BOUND; tcb->rto = CONFIG_GNRC_TCP_RTO_LOWER_BOUND;
} }
else { else {
tcb->rto = tcb->srtt + _max(GNRC_TCP_RTO_GRANULARITY, GNRC_TCP_RTO_K * tcb->rtt_var); tcb->rto = tcb->srtt + _max(CONFIG_GNRC_TCP_RTO_GRANULARITY, GNRC_TCP_RTO_K * tcb->rtt_var);
} }
} }
else { else {