mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2025-08-06 22:44:38 +08:00
Fix debug print, remove reference to TCP_COARSE_TIMEOUT
This commit is contained in:
parent
b306594cad
commit
1dae102359
@ -51,8 +51,7 @@
|
|||||||
#include "lwip/tcp.h"
|
#include "lwip/tcp.h"
|
||||||
#if LWIP_TCP
|
#if LWIP_TCP
|
||||||
|
|
||||||
/* Incremented every coarse grained timer shot
|
/* Incremented every coarse grained timer shot (typically every 500 ms). */
|
||||||
(typically every 500 ms, determined by TCP_COARSE_TIMEOUT). */
|
|
||||||
u32_t tcp_ticks;
|
u32_t tcp_ticks;
|
||||||
const u8_t tcp_backoff[13] =
|
const u8_t tcp_backoff[13] =
|
||||||
{ 1, 2, 3, 4, 5, 6, 7, 7, 7, 7, 7, 7, 7};
|
{ 1, 2, 3, 4, 5, 6, 7, 7, 7, 7, 7, 7, 7};
|
||||||
@ -117,10 +116,10 @@ tcp_close(struct tcp_pcb *pcb)
|
|||||||
err_t err;
|
err_t err;
|
||||||
|
|
||||||
#if TCP_DEBUG
|
#if TCP_DEBUG
|
||||||
LWIP_DEBUGF(TCP_DEBUG, ("tcp_close: closing in state "));
|
LWIP_DEBUGF(TCP_DEBUG, ("tcp_close: closing in "));
|
||||||
tcp_debug_print_state(pcb->state);
|
tcp_debug_print_state(pcb->state);
|
||||||
LWIP_DEBUGF(TCP_DEBUG, ("\n"));
|
|
||||||
#endif /* TCP_DEBUG */
|
#endif /* TCP_DEBUG */
|
||||||
|
|
||||||
switch (pcb->state) {
|
switch (pcb->state) {
|
||||||
case CLOSED:
|
case CLOSED:
|
||||||
/* Closing a pcb in the CLOSED state might seem erroneous,
|
/* Closing a pcb in the CLOSED state might seem erroneous,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user