1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

gnrc/tcp : Move GNRC_TCP_RTO_K to 'CONFIG_'

This commit is contained in:
Akshai M 2020-05-14 17:23:51 +05:30
parent e42cc62edc
commit 27f9d2def6
2 changed files with 3 additions and 3 deletions

View File

@ -149,8 +149,8 @@ extern "C" {
/**
* @brief K value for RTO calculation, default is 4
*/
#ifndef GNRC_TCP_RTO_K
#define GNRC_TCP_RTO_K (4U)
#ifndef CONFIG_GNRC_TCP_RTO_K
#define CONFIG_GNRC_TCP_RTO_K (4U)
#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;
}
else {
tcb->rto = tcb->srtt + _max(CONFIG_GNRC_TCP_RTO_GRANULARITY, GNRC_TCP_RTO_K * tcb->rtt_var);
tcb->rto = tcb->srtt + _max(CONFIG_GNRC_TCP_RTO_GRANULARITY, CONFIG_GNRC_TCP_RTO_K * tcb->rtt_var);
}
}
else {