From 5810ad0bef9f5ddb438bf216c9e406b5cc05971e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=87=89=E4=BB=8B?= <2775690335@qq.com> Date: Sun, 15 Sep 2024 12:54:52 +0800 Subject: [PATCH 1/4] add the patch of the fix udp v6 --- 0165-fix-the-udp-v6-problem.patch | 26 ++++++++++++++++++++++++++ lwip.spec | 6 +++++- 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 0165-fix-the-udp-v6-problem.patch diff --git a/0165-fix-the-udp-v6-problem.patch b/0165-fix-the-udp-v6-problem.patch new file mode 100644 index 0000000..a6803c6 --- /dev/null +++ b/0165-fix-the-udp-v6-problem.patch @@ -0,0 +1,26 @@ +From a33d3871f39dbecb7343f45886866621af96fe27 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?=E5=87=89=E4=BB=8B?= <2775690335@qq.com> +Date: Sun, 15 Sep 2024 12:38:17 +0800 +Subject: [PATCH] fix the udp v6 problem which caused by iptype set to + IPADDR_TYPE_ANY at pcb_new + +--- + src/api/api_msg.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/api/api_msg.c b/src/api/api_msg.c +index acd4697..12d8e11 100644 +--- a/src/api/api_msg.c ++++ b/src/api/api_msg.c +@@ -679,7 +679,7 @@ pcb_new(struct api_msg *msg) + #if LWIP_IPV6 && LWIP_IPV4 + /* IPv6: Dual-stack by default, unless netconn_set_ipv6only() is called */ + if (NETCONNTYPE_ISIPV6(netconn_type(msg->conn))) { +- iptype = IPADDR_TYPE_ANY; ++ iptype = IPADDR_TYPE_V6; + } + #endif + +-- +2.33.0 + diff --git a/lwip.spec b/lwip.spec index 190d0cf..2d6294a 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.2.0 -Release: 54 +Release: 55 License: BSD URL: http://savannah.nongnu.org/projects/lwip/ Source0: http://download.savannah.nongnu.org/releases/lwip/%{name}-%{version}.zip @@ -176,6 +176,7 @@ Patch9160: 0161-fix-the-definition-of-IPV6_V6ONLY.patch Patch9161: 0162-check-if-mem_init-returns-errno.patch Patch9162: 0163-LWIPOPTS-support-setsockopt-SO_SNDTIMEO.patch Patch9163: 0164-LWIPOPTS-support-setsockopt-SO_SNDBUF.patch +Patch9164: 0165-fix-the-udp-v6-problem.patch BuildRequires: gcc-c++ dos2unix dpdk-devel @@ -205,6 +206,9 @@ cd %{_builddir}/%{name}-%{version}/src %{_libdir}/liblwip.a %changelog +* Tue Sep 24 2024 凉介 <2775690335@qq.com> - 2.2.0-55 +- fix the lwip upd V6 problem which caused by set the init iptype to IPADDR_TYPE_ANY in pcb_new + * Tue Sep 10 2024 yinbin - 2.2.0-54 - LWIPOPTS support setsockopt SO_SNDTIMEO - LWIPOPTS support setsockopt SO_SNDBUF -- Gitee From 40f260fd1638bab7fca27c7e37339e571f8d251e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=87=89=E4=BB=8B?= <2775690335@qq.com> Date: Sun, 15 Sep 2024 15:04:05 +0800 Subject: [PATCH 2/4] update the user name --- lwip.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lwip.spec b/lwip.spec index 2d6294a..533be4e 100644 --- a/lwip.spec +++ b/lwip.spec @@ -206,7 +206,7 @@ cd %{_builddir}/%{name}-%{version}/src %{_libdir}/liblwip.a %changelog -* Tue Sep 24 2024 凉介 <2775690335@qq.com> - 2.2.0-55 +* Tue Sep 24 2024 liumin <2775690335@qq.com> - 2.2.0-55 - fix the lwip upd V6 problem which caused by set the init iptype to IPADDR_TYPE_ANY in pcb_new * Tue Sep 10 2024 yinbin - 2.2.0-54 -- Gitee From 4d8ae61646451d59d117c45d1f6b6a3dd762da3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=87=89=E4=BB=8B?= <2775690335@qq.com> Date: Sun, 15 Sep 2024 15:08:53 +0800 Subject: [PATCH 3/4] update the release version --- lwip.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lwip.spec b/lwip.spec index 533be4e..9bb67d1 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.2.0 -Release: 55 +Release: 56 License: BSD URL: http://savannah.nongnu.org/projects/lwip/ Source0: http://download.savannah.nongnu.org/releases/lwip/%{name}-%{version}.zip @@ -206,7 +206,7 @@ cd %{_builddir}/%{name}-%{version}/src %{_libdir}/liblwip.a %changelog -* Tue Sep 24 2024 liumin <2775690335@qq.com> - 2.2.0-55 +* Tue Sep 24 2024 liumin <2775690335@qq.com> - 2.2.0-56 - fix the lwip upd V6 problem which caused by set the init iptype to IPADDR_TYPE_ANY in pcb_new * Tue Sep 10 2024 yinbin - 2.2.0-54 -- Gitee From 277a0aea61763e462f9a08b6e1ffabb6f3f9254d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=87=89=E4=BB=8B?= <2775690335@qq.com> Date: Sun, 15 Sep 2024 15:39:17 +0800 Subject: [PATCH 4/4] change version to 55 --- lwip.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lwip.spec b/lwip.spec index 9bb67d1..533be4e 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.2.0 -Release: 56 +Release: 55 License: BSD URL: http://savannah.nongnu.org/projects/lwip/ Source0: http://download.savannah.nongnu.org/releases/lwip/%{name}-%{version}.zip @@ -206,7 +206,7 @@ cd %{_builddir}/%{name}-%{version}/src %{_libdir}/liblwip.a %changelog -* Tue Sep 24 2024 liumin <2775690335@qq.com> - 2.2.0-56 +* Tue Sep 24 2024 liumin <2775690335@qq.com> - 2.2.0-55 - fix the lwip upd V6 problem which caused by set the init iptype to IPADDR_TYPE_ANY in pcb_new * Tue Sep 10 2024 yinbin - 2.2.0-54 -- Gitee