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

