summaryrefslogtreecommitdiffstats
path: root/rtemslwip
diff options
context:
space:
mode:
authorKinsey Moore <kinsey.moore@oarcorp.com>2022-08-26 16:44:10 -0500
committerJoel Sherrill <joel@rtems.org>2022-09-10 11:48:39 -0500
commit2306c4517b3ec6b11eee4df4bae886f6eabbbfd9 (patch)
treea8838e2456268ba341c8e3fd31c7fda84270ba74 /rtemslwip
parentlwip.py: Track includes as lists (diff)
downloadrtems-lwip-2306c4517b3ec6b11eee4df4bae886f6eabbbfd9.tar.bz2
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.
Diffstat (limited to 'rtemslwip')
-rw-r--r--rtemslwip/zynqmp/lwipopts.h5
1 files changed, 4 insertions, 1 deletions
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