[rtems-lwip commit] lwipopts: Update for NTP
Joel Sherrill
joel at rtems.org
Sat Sep 10 16:38:56 UTC 2022
Module: rtems-lwip
Branch: main
Commit: 2306c4517b3ec6b11eee4df4bae886f6eabbbfd9
Changeset: http://git.rtems.org/rtems-lwip/commit/?id=2306c4517b3ec6b11eee4df4bae886f6eabbbfd9
Author: Kinsey Moore <kinsey.moore at oarcorp.com>
Date: Fri Aug 26 16:44:10 2022 -0500
lwipopts: Update for NTP
The default ZynqMP configuration is missing some definitions required
for NTP to function. This adjusts the default ZynqMP configuration to be
compatible with the NTP library's requirements.
---
rtemslwip/zynqmp/lwipopts.h | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/rtemslwip/zynqmp/lwipopts.h b/rtemslwip/zynqmp/lwipopts.h
index 2d358a3..b9fe277 100644
--- a/rtemslwip/zynqmp/lwipopts.h
+++ b/rtemslwip/zynqmp/lwipopts.h
@@ -31,6 +31,7 @@
#define NO_SYS 0
#define LWIP_SOCKET 1
+#define SO_REUSE 1
#define LWIP_COMPAT_SOCKETS 1
#define LWIP_NETCONN 1
@@ -48,7 +49,8 @@
#define MEM_ALIGNMENT 64
#define MEM_SIZE 2 * 1024 * 1024
#define MEMP_NUM_PBUF 32
-#define MEMP_NUM_UDP_PCB 4
+#define MEMP_NUM_NETCONN 16
+#define MEMP_NUM_UDP_PCB 16
#define MEMP_NUM_TCP_PCB 32
#define MEMP_NUM_TCP_PCB_LISTEN 8
#define MEMP_NUM_TCP_SEG 256
@@ -114,6 +116,7 @@
#define CONFIG_LINKSPEED_AUTODETECT 1
#define TCPIP_MBOX_SIZE 20
#define DEFAULT_TCP_RECVMBOX_SIZE 20
+#define DEFAULT_UDP_RECVMBOX_SIZE 20
#define DEFAULT_ACCEPTMBOX_SIZE 5
#define tskIDLE_PRIORITY RTEMS_MAXIMUM_PRIORITY
More information about the vc
mailing list