fix receive fin packet process error
This commit is contained in:
parent
6ccfde4a29
commit
673d47530d
59
0108-fix-receive-fin-packet-process-error.patch
Normal file
59
0108-fix-receive-fin-packet-process-error.patch
Normal file
@ -0,0 +1,59 @@
|
||||
From 7dbceaeab7f85df6a58b77858c507fa9087d5ba7 Mon Sep 17 00:00:00 2001
|
||||
From: jiangheng <jiangheng14@huawei.com>
|
||||
Date: Mon, 22 Jan 2024 20:38:57 +0800
|
||||
Subject: [PATCH] fix receive fin packet process error
|
||||
|
||||
---
|
||||
src/core/tcp_in.c | 9 ---------
|
||||
src/include/lwipsock.h | 1 +
|
||||
2 files changed, 1 insertion(+), 9 deletions(-)
|
||||
|
||||
diff --git a/src/core/tcp_in.c b/src/core/tcp_in.c
|
||||
index 9d5a695..84d22ca 100644
|
||||
--- a/src/core/tcp_in.c
|
||||
+++ b/src/core/tcp_in.c
|
||||
@@ -1142,9 +1142,6 @@ tcp_process(struct tcp_pcb *pcb)
|
||||
if (recv_flags & TF_GOT_FIN) {
|
||||
tcp_ack_now(pcb);
|
||||
pcb->state = CLOSE_WAIT;
|
||||
-#if GAZELLE_ENABLE
|
||||
- API_EVENT(((struct netconn *)pcb->callback_arg), NETCONN_EVT_ERROR, 0);
|
||||
-#endif
|
||||
}
|
||||
} else {
|
||||
/* incorrect ACK number, send RST */
|
||||
@@ -1163,9 +1160,6 @@ tcp_process(struct tcp_pcb *pcb)
|
||||
if (recv_flags & TF_GOT_FIN) { /* passive close */
|
||||
tcp_ack_now(pcb);
|
||||
pcb->state = CLOSE_WAIT;
|
||||
-#if GAZELLE_ENABLE
|
||||
- API_EVENT(((struct netconn *)pcb->callback_arg), NETCONN_EVT_ERROR, 0);
|
||||
-#endif
|
||||
}
|
||||
break;
|
||||
case FIN_WAIT_1:
|
||||
@@ -1820,9 +1814,6 @@ tcp_receive(struct tcp_pcb *pcb)
|
||||
recv_flags |= TF_GOT_FIN;
|
||||
if (pcb->state == ESTABLISHED) { /* force passive close or we can move to active close */
|
||||
pcb->state = CLOSE_WAIT;
|
||||
-#if GAZELLE_ENABLE
|
||||
- API_EVENT(((struct netconn *)pcb->callback_arg), NETCONN_EVT_ERROR, 0);
|
||||
-#endif
|
||||
}
|
||||
}
|
||||
|
||||
diff --git a/src/include/lwipsock.h b/src/include/lwipsock.h
|
||||
index ccc8c43..f4cb1de 100644
|
||||
--- a/src/include/lwipsock.h
|
||||
+++ b/src/include/lwipsock.h
|
||||
@@ -120,7 +120,6 @@ struct lwip_sock {
|
||||
char pad2 __rte_cache_aligned;
|
||||
/* stack thread all use */
|
||||
struct list_node recv_list;
|
||||
- struct pbuf *send_lastdata;
|
||||
struct pbuf *send_pre_del;
|
||||
sem_t snd_ring_sem;
|
||||
|
||||
--
|
||||
2.33.0
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
Summary: lwip is a small independent implementation of the TCP/IP protocol suite
|
||||
Name: lwip
|
||||
Version: 2.1.3
|
||||
Release: 113
|
||||
Release: 114
|
||||
License: BSD
|
||||
URL: http://savannah.nongnu.org/projects/lwip/
|
||||
Source0: http://download.savannah.nongnu.org/releases/lwip/%{name}-%{version}.zip
|
||||
@ -124,6 +124,7 @@ Patch9103: 0104-optimize-enqueue-for-unacked-and-unsent-queue.patch
|
||||
Patch9104: 0105-delete-redundant-logs-in-lwip.patch
|
||||
Patch9105: 0106-remove-unnecessary-variables-in-struct-pbuf.patch
|
||||
Patch9106: 0107-fix-move-lpcb-to-the-front-of-list-error.patch
|
||||
Patch9107: 0108-fix-receive-fin-packet-process-error.patch
|
||||
|
||||
BuildRequires: gcc-c++ dos2unix dpdk-devel
|
||||
|
||||
@ -153,6 +154,9 @@ cd %{_builddir}/%{name}-%{version}/src
|
||||
%{_libdir}/liblwip.a
|
||||
|
||||
%changelog
|
||||
* Tue Jan 30 2024 jiangheng <jiangheng14@huawei.com> - 2.1.3-114
|
||||
- fix receive fin packet process error
|
||||
|
||||
* Tue Jan 30 2024 jiangheng <jiangheng14@huawei.com> - 2.1.3-113
|
||||
- fix move lpcb to the front of list error
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user