diff --git a/0123-opts-modify-MEMP_NUM_UDP_PCB.patch b/0123-opts-modify-MEMP_NUM_UDP_PCB.patch new file mode 100644 index 0000000..fb34e0c --- /dev/null +++ b/0123-opts-modify-MEMP_NUM_UDP_PCB.patch @@ -0,0 +1,22 @@ +From 226fbb87dcf266d165962f1d87f9c4c5d4ea8e2d Mon Sep 17 00:00:00 2001 +From: yinbin6 +Date: Thu, 11 Apr 2024 15:07:47 +0800 +Subject: [PATCH] opts: modify MEMP_NUM_UDP_PCB + + +diff --git a/src/include/lwipopts.h b/src/include/lwipopts.h +index 62573f5..4655388 100644 +--- a/src/include/lwipopts.h ++++ b/src/include/lwipopts.h +@@ -192,7 +192,7 @@ + + #define UDP_HLEN 8 + +-#define MEMP_NUM_UDP_PCB 16 ++#define MEMP_NUM_UDP_PCB (GAZELLE_MAX_CLIENTS + GAZELLE_RESERVED_CLIENTS) + #define MEMP_NUM_IGMP_GROUP 16 + + #define DEFAULT_UDP_RECVMBOX_SIZE 4096 +-- +2.33.0 + diff --git a/lwip.spec b/lwip.spec index 226752a..f86220e 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: 15 +Release: 16 License: BSD URL: http://savannah.nongnu.org/projects/lwip/ Source0: http://download.savannah.nongnu.org/releases/lwip/%{name}-%{version}.zip @@ -134,6 +134,7 @@ Patch9118: 0119-support-igmpv3.patch Patch9119: 0120-enable-SO_REUSE_RXTOALL.patch Patch9120: 0121-add-vlan-filter.patch Patch9121: 0122-support-mldv2.patch +Patch9122: 0123-opts-modify-MEMP_NUM_UDP_PCB.patch BuildRequires: gcc-c++ dos2unix dpdk-devel @@ -163,6 +164,9 @@ cd %{_builddir}/%{name}-%{version}/src %{_libdir}/liblwip.a %changelog +* Thu Apr 11 2024 yinbin - 2.2.0-16 +- opts: modify MEMP_NUM_UDP_PCB + * Tue Apr 09 2024 wanfeng - 2.2.0-15 - add ipv6 mldv2 multicast protocol