diff --git a/0095-event_callback-del-errevent-log-if-err-is-ERR_OK.patch b/0095-event_callback-del-errevent-log-if-err-is-ERR_OK.patch new file mode 100644 index 0000000..9260abc --- /dev/null +++ b/0095-event_callback-del-errevent-log-if-err-is-ERR_OK.patch @@ -0,0 +1,27 @@ +From db1929c5698a672200bf96d7ece992f10a98a80c Mon Sep 17 00:00:00 2001 +From: yangchen +Date: Wed, 20 Dec 2023 17:37:42 +0800 +Subject: [PATCH] event_callback: del errevent log if err is ERR_OK + +--- + src/api/sockets.c | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +diff --git a/src/api/sockets.c b/src/api/sockets.c +index 0b3e4ea..f5b8ea6 100644 +--- a/src/api/sockets.c ++++ b/src/api/sockets.c +@@ -2805,7 +2805,9 @@ event_callback(struct netconn *conn, enum netconn_evt evt, u16_t len) + #endif + break; + case NETCONN_EVT_ERROR: +- LWIP_DEBUGF(GAZELLE_DEBUG_SERIOUS, ("event_callback: have errevent, err=%d, fd=%d\n", conn->pending_err, conn->socket)); ++ if (conn->pending_err != ERR_OK) { ++ LWIP_DEBUGF(GAZELLE_DEBUG_SERIOUS, ("event_callback: have errevent, err=%d, fd=%d\n", conn->pending_err, conn->socket)); ++ } + sock->errevent = 1; + #if GAZELLE_ENABLE + if (netif_is_rtc_mode(netif_default)) { +-- +2.33.0 + diff --git a/lwip.spec b/lwip.spec index 526da01..ae56f29 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-event_callback-del-errevent-log-if-err-is-ERR_OK.patch BuildRequires: gcc-c++ dos2unix dpdk-devel @@ -138,6 +139,9 @@ cd %{_builddir}/%{name}-%{version}/src %{_libdir}/liblwip.a %changelog +* Wed Dec 20 2023 yangchen - 2.1.3-98 +- event_callback: del errevent log if err is ERR_OK + * Fri Dec 15 2023 yangchen - 2.1.3-97 - lwip log: fix reversed port in tcp_input