mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
gnrc/tcp : Move GNRC_TCP_RTO_UPPER_BOUND to 'CONFIG_'
This commit is contained in:
parent
ea79c71ce8
commit
c599c65124
@ -121,8 +121,8 @@ extern "C" {
|
|||||||
/**
|
/**
|
||||||
* @brief Upper bound for RTO = 60 sec (see RFC 6298)
|
* @brief Upper bound for RTO = 60 sec (see RFC 6298)
|
||||||
*/
|
*/
|
||||||
#ifndef GNRC_TCP_RTO_UPPER_BOUND
|
#ifndef CONFIG_GNRC_TCP_RTO_UPPER_BOUND
|
||||||
#define GNRC_TCP_RTO_UPPER_BOUND (60U * US_PER_SEC)
|
#define CONFIG_GNRC_TCP_RTO_UPPER_BOUND (60U * US_PER_SEC)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -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) {
|
if (tcb->rto < (int32_t) CONFIG_GNRC_TCP_RTO_LOWER_BOUND) {
|
||||||
tcb->rto = 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) {
|
else if (tcb->rto > (int32_t) CONFIG_GNRC_TCP_RTO_UPPER_BOUND) {
|
||||||
tcb->rto = GNRC_TCP_RTO_UPPER_BOUND;
|
tcb->rto = CONFIG_GNRC_TCP_RTO_UPPER_BOUND;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Setup retransmission timer, msg to TCP thread with ptr to TCB */
|
/* Setup retransmission timer, msg to TCP thread with ptr to TCB */
|
||||||
|
Loading…
Reference in New Issue
Block a user