diff --git a/0095-fix-error-unsent-coredump.patch b/0095-fix-error-unsent-coredump.patch new file mode 100644 index 0000000000000000000000000000000000000000..dfb7d7a64898a85dc179d2fe86f7135ccc249701 --- /dev/null +++ b/0095-fix-error-unsent-coredump.patch @@ -0,0 +1,25 @@ +From 15b188c106cb57e5c928311af8a62ab74c06bd35 Mon Sep 17 00:00:00 2001 +From: compile_success <980965867@qq.com> +Date: Sat, 16 Dec 2023 07:58:30 +0000 +Subject: [PATCH] fix error unsent coredump + +--- + src/core/tcp_out.c | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/src/core/tcp_out.c b/src/core/tcp_out.c +index 137e3cf..f133142 100644 +--- a/src/core/tcp_out.c ++++ b/src/core/tcp_out.c +@@ -1613,6 +1613,8 @@ tcp_output(struct tcp_pcb *pcb) + if (err != ERR_OK) { + /* segment could not be sent, for whatever reason */ + tcp_set_flags(pcb, TF_NAGLEMEMERR); ++ if (pcb->unsent == NULL) ++ pcb->last_unsent = NULL; + return err; + } + +-- +2.33.0 + diff --git a/lwip.spec b/lwip.spec index 526da01df1b18d01982019b750bade95d78bc7a5..5c6b02a2acb55fbc129674b403c0b17e16fb13f0 100644 --- a/lwip.spec +++ b/lwip.spec @@ -4,7 +4,7 @@ Summary: lwip is a small independent implementation of the TCP/IP protocol suite Name: lwip Version: 2.1.3 -Release: 97 +Release: 98 License: BSD URL: http://savannah.nongnu.org/projects/lwip/ Source0: http://download.savannah.nongnu.org/releases/lwip/%{name}-%{version}.zip @@ -108,6 +108,7 @@ Patch9090: 0091-add-fd-log-info-and-fix-wrong-port-log-info.patch Patch9091: 0092-fix-the-coredump-issue-when-UDP-traffic-is-sent.patch Patch9092: 0093-modfiy-accept-null-pointer-when-new-conn-receive-RST-packet-in-listening.patch Patch9093: 0094-lwip-log-fix-reversed-port-in-tcp_input.patch +Patch9094: 0095-fix-error-unsent-coredump.patch BuildRequires: gcc-c++ dos2unix dpdk-devel @@ -138,6 +139,9 @@ cd %{_builddir}/%{name}-%{version}/src %{_libdir}/liblwip.a %changelog +* Sat Dec 16 2023 zhujunhao - 2.1.3-98 +- fix error unsent segment + * Fri Dec 15 2023 yangchen - 2.1.3-97 - lwip log: fix reversed port in tcp_input