lwip/0173-IGMP-fix-problem-that-can-not-join-the-sixteen-igmp-.patch
yinbin 501f4169a2 IGMP: fix problem that can not join the sixteen igmp group
(cherry picked from commit 729e3e8ed5993050d5bd0fc19cb90858c7fb682a)
2024-11-01 10:23:48 +08:00

30 lines
947 B
Diff

From 27e8c610ec1313e23088ed04a8cfd294b2e96246 Mon Sep 17 00:00:00 2001
From: yinbin <yinbin8@huawei.com>
Date: Thu, 31 Oct 2024 17:31:47 +0800
Subject: [PATCH] IGMP: fix problem that can not join the sixteen igmp group.
---
src/include/lwipopts.h | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/include/lwipopts.h b/src/include/lwipopts.h
index c46dce9..3db6c58 100644
--- a/src/include/lwipopts.h
+++ b/src/include/lwipopts.h
@@ -199,8 +199,10 @@
#define UDP_HLEN 8
#define MEMP_NUM_UDP_PCB (GAZELLE_MAX_CLIENTS + GAZELLE_RESERVED_CLIENTS)
-#define MEMP_NUM_IGMP_GROUP 16
-#define MEMP_NUM_MLD6_GROUP 16
+/* igmp group num should add igmp_allsystems(224.0.0.1) num, which alse consume mempool */
+#define MEMP_NUM_IGMP_ALLSYSTEMS 1
+#define MEMP_NUM_IGMP_GROUP (16 + MEMP_NUM_IGMP_ALLSYSTEMS)
+#define MEMP_NUM_MLD6_GROUP (16 + MEMP_NUM_IGMP_ALLSYSTEMS)
#define DEFAULT_UDP_RECVMBOX_SIZE 4096
--
2.34.1