1195972f6Sopenharmony_ciFrom f1b954fd737ca0e7571019f88b18a926ce849e6b Mon Sep 17 00:00:00 2001 2195972f6Sopenharmony_ciFrom: hantwofish <hankangkang5@huawei.com> 3195972f6Sopenharmony_ciDate: Tue, 5 Dec 2023 10:57:46 +0800 4195972f6Sopenharmony_ciSubject: [PATCH] modify log info err 5195972f6Sopenharmony_ci 6195972f6Sopenharmony_ci--- 7195972f6Sopenharmony_ci src/core/tcp.c | 16 ++++++++-------- 8195972f6Sopenharmony_ci 1 file changed, 8 insertions(+), 8 deletions(-) 9195972f6Sopenharmony_ci 10195972f6Sopenharmony_cidiff --git a/src/core/tcp.c b/src/core/tcp.c 11195972f6Sopenharmony_ciindex 3c7bbd0..2cfee11 100644 12195972f6Sopenharmony_ci--- a/src/core/tcp.c 13195972f6Sopenharmony_ci+++ b/src/core/tcp.c 14195972f6Sopenharmony_ci@@ -1397,17 +1397,17 @@ tcp_slowtmr_start: 15195972f6Sopenharmony_ci 16195972f6Sopenharmony_ci if (pcb->state == SYN_SENT && pcb->nrtx >= TCP_SYNMAXRTX) { 17195972f6Sopenharmony_ci ++pcb_remove; 18195972f6Sopenharmony_ci- LWIP_DEBUGF(TCP_DEBUG | GAZELLE_DEBUG_SERIOUS, ("tcp_slowtmr: max SYN retries reached loac_port=%u, remote_port=%u\n", pcb->local_port, pcb->remote_port)); 19195972f6Sopenharmony_ci+ LWIP_DEBUGF(TCP_DEBUG | GAZELLE_DEBUG_SERIOUS, ("tcp_slowtmr: max SYN retries reached local_port=%u, remote_port=%u\n", pcb->local_port, pcb->remote_port)); 20195972f6Sopenharmony_ci } else if (pcb->nrtx >= TCP_MAXRTX) { 21195972f6Sopenharmony_ci ++pcb_remove; 22195972f6Sopenharmony_ci- LWIP_DEBUGF(TCP_DEBUG | GAZELLE_DEBUG_SERIOUS, ("tcp_slowtmr: max DATA retries reached loac_port=%u, remote_port=%u\n", pcb->local_port, pcb->remote_port)); 23195972f6Sopenharmony_ci+ LWIP_DEBUGF(TCP_DEBUG | GAZELLE_DEBUG_SERIOUS, ("tcp_slowtmr: max DATA retries reached local_port=%u, remote_port=%u\n", pcb->local_port, pcb->remote_port)); 24195972f6Sopenharmony_ci } else { 25195972f6Sopenharmony_ci if (pcb->persist_backoff > 0) { 26195972f6Sopenharmony_ci LWIP_ASSERT("tcp_slowtimr: persist ticking with in-flight data", pcb->unacked == NULL); 27195972f6Sopenharmony_ci LWIP_ASSERT("tcp_slowtimr: persist ticking with empty send buffer", pcb->unsent != NULL); 28195972f6Sopenharmony_ci if (pcb->persist_probe >= TCP_MAXRTX) { 29195972f6Sopenharmony_ci ++pcb_remove; /* max probes reached */ 30195972f6Sopenharmony_ci- LWIP_DEBUGF(TCP_DEBUG | GAZELLE_DEBUG_SERIOUS, ("tcp_slowtmr: persist_probe is greater TCP_MAXRTX loac_port=%u, remote_port=%u\n", pcb->local_port, pcb->remote_port)); 31195972f6Sopenharmony_ci+ LWIP_DEBUGF(TCP_DEBUG | GAZELLE_DEBUG_SERIOUS, ("tcp_slowtmr: persist_probe is greater TCP_MAXRTX local_port=%u, remote_port=%u\n", pcb->local_port, pcb->remote_port)); 32195972f6Sopenharmony_ci } else { 33195972f6Sopenharmony_ci u8_t backoff_cnt = tcp_persist_backoff[pcb->persist_backoff - 1]; 34195972f6Sopenharmony_ci if (pcb->persist_cnt < backoff_cnt) { 35195972f6Sopenharmony_ci@@ -1491,7 +1491,7 @@ tcp_slowtmr_start: 36195972f6Sopenharmony_ci if ((u32_t)(tcp_ticks - pcb->tmr) > 37195972f6Sopenharmony_ci TCP_FIN_WAIT_TIMEOUT / TCP_SLOW_INTERVAL) { 38195972f6Sopenharmony_ci ++pcb_remove; 39195972f6Sopenharmony_ci- LWIP_DEBUGF(TCP_DEBUG | GAZELLE_DEBUG_SERIOUS, ("tcp_slowtmr: removing pcb stuck in FIN-WAIT-2 loac_port=%u, remote_port=%u\n", pcb->local_port, pcb->remote_port)); 40195972f6Sopenharmony_ci+ LWIP_DEBUGF(TCP_DEBUG | GAZELLE_DEBUG_SERIOUS, ("tcp_slowtmr: removing pcb stuck in FIN-WAIT-2 local_port=%u, remote_port=%u\n", pcb->local_port, pcb->remote_port)); 41195972f6Sopenharmony_ci } 42195972f6Sopenharmony_ci } 43195972f6Sopenharmony_ci } 44195972f6Sopenharmony_ci@@ -1502,7 +1502,7 @@ tcp_slowtmr_start: 45195972f6Sopenharmony_ci (pcb->state == CLOSE_WAIT))) { 46195972f6Sopenharmony_ci if ((u32_t)(tcp_ticks - pcb->tmr) > 47195972f6Sopenharmony_ci (pcb->keep_idle + TCP_KEEP_DUR(pcb)) / TCP_SLOW_INTERVAL) { 48195972f6Sopenharmony_ci- LWIP_DEBUGF(TCP_DEBUG | GAZELLE_DEBUG_SERIOUS, ("tcp_slowtmr: KEEPALIVE timeout. Aborting connection to loac_port=%u, remote_port=%u\n", pcb->local_port, pcb->remote_port)); 49195972f6Sopenharmony_ci+ LWIP_DEBUGF(TCP_DEBUG | GAZELLE_DEBUG_SERIOUS, ("tcp_slowtmr: KEEPALIVE timeout. Aborting connection to local_port=%u, remote_port=%u\n", pcb->local_port, pcb->remote_port)); 50195972f6Sopenharmony_ci ip_addr_debug_print_val(TCP_DEBUG, pcb->remote_ip); 51195972f6Sopenharmony_ci LWIP_DEBUGF(TCP_DEBUG, ("\n")); 52195972f6Sopenharmony_ci 53195972f6Sopenharmony_ci@@ -1524,7 +1524,7 @@ tcp_slowtmr_start: 54195972f6Sopenharmony_ci #if TCP_QUEUE_OOSEQ 55195972f6Sopenharmony_ci if (pcb->ooseq != NULL && 56195972f6Sopenharmony_ci (tcp_ticks - pcb->tmr >= (u32_t)pcb->rto * TCP_OOSEQ_TIMEOUT)) { 57195972f6Sopenharmony_ci- LWIP_DEBUGF(TCP_DEBUG | GAZELLE_DEBUG_SERIOUS, ("tcp_slowtmr: dropping OOSEQ queued data loac_port=%u, remote_port=%u\n", pcb->local_port, pcb->remote_port)); 58195972f6Sopenharmony_ci+ LWIP_DEBUGF(TCP_DEBUG | GAZELLE_DEBUG_SERIOUS, ("tcp_slowtmr: dropping OOSEQ queued data local_port=%u, remote_port=%u\n", pcb->local_port, pcb->remote_port)); 59195972f6Sopenharmony_ci tcp_free_ooseq(pcb); 60195972f6Sopenharmony_ci } 61195972f6Sopenharmony_ci #endif /* TCP_QUEUE_OOSEQ */ 62195972f6Sopenharmony_ci@@ -1534,7 +1534,7 @@ tcp_slowtmr_start: 63195972f6Sopenharmony_ci if ((u32_t)(tcp_ticks - pcb->tmr) > 64195972f6Sopenharmony_ci TCP_SYN_RCVD_TIMEOUT / TCP_SLOW_INTERVAL) { 65195972f6Sopenharmony_ci ++pcb_remove; 66195972f6Sopenharmony_ci- LWIP_DEBUGF(TCP_DEBUG | GAZELLE_DEBUG_SERIOUS, ("tcp_slowtmr: removing pcb stuck in SYN-RCVD loac_port=%u, remote_port=%u\n", pcb->local_port, pcb->remote_port)); 67195972f6Sopenharmony_ci+ LWIP_DEBUGF(TCP_DEBUG | GAZELLE_DEBUG_SERIOUS, ("tcp_slowtmr: removing pcb stuck in SYN-RCVD local_port=%u, remote_port=%u\n", pcb->local_port, pcb->remote_port)); 68195972f6Sopenharmony_ci } 69195972f6Sopenharmony_ci } 70195972f6Sopenharmony_ci 71195972f6Sopenharmony_ci@@ -1542,7 +1542,7 @@ tcp_slowtmr_start: 72195972f6Sopenharmony_ci if (pcb->state == LAST_ACK) { 73195972f6Sopenharmony_ci if ((u32_t)(tcp_ticks - pcb->tmr) > 2 * TCP_MSL / TCP_SLOW_INTERVAL) { 74195972f6Sopenharmony_ci ++pcb_remove; 75195972f6Sopenharmony_ci- LWIP_DEBUGF(TCP_DEBUG | GAZELLE_DEBUG_SERIOUS, ("tcp_slowtmr: removing pcb stuck in LAST-ACK loac_port=%u, remote_port=%u\n", pcb->local_port, pcb->remote_port)); 76195972f6Sopenharmony_ci+ LWIP_DEBUGF(TCP_DEBUG | GAZELLE_DEBUG_SERIOUS, ("tcp_slowtmr: removing pcb stuck in LAST-ACK local_port=%u, remote_port=%u\n", pcb->local_port, pcb->remote_port)); 77195972f6Sopenharmony_ci } 78195972f6Sopenharmony_ci } 79195972f6Sopenharmony_ci 80195972f6Sopenharmony_ci-- 81195972f6Sopenharmony_ci2.33.0 82195972f6Sopenharmony_ci 83