diff --git a/0165-fix-the-udp-v6-problem.patch b/0165-fix-the-udp-v6-problem.patch new file mode 100644 index 0000000000000000000000000000000000000000..a6803c6d5341466f353f43330aae62be20441b60 --- /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 190d0cfb9370b4a2caa26eb522446a3c128c6815..533be4e41c6225bff4e9018f48c6d5967249d6a0 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 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 - LWIPOPTS support setsockopt SO_SNDTIMEO - LWIPOPTS support setsockopt SO_SNDBUF