From 226fbb87dcf266d165962f1d87f9c4c5d4ea8e2d Mon Sep 17 00:00:00 2001
From: yinbin6 <yinbin8@huawei.com>
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

