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_UPPER_BOUND to 'CONFIG_'

This commit is contained in:
Akshai M 2020-05-14 16:43:02 +05:30
parent ea79c71ce8
commit c599c65124
2 changed files with 4 additions and 4 deletions

View File

@ -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
/**

View File

@ -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 */