sdk-core v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
Loading...
Searching...
No Matches
lwipopts.h
Go to the documentation of this file.
1/* If changes are made to this file, please update the defined
2 values at the bottom of common/include/tcpip.h too. */
3
8#ifndef __LWIPOPTS_H__
9#define __LWIPOPTS_H__
10
11#define LWIP_TIMEVAL_PRIVATE 0
12
13/* ---------- Thread options ---------- */
31#define DEFAULT_THREAD_STACKSIZE 0x600
32
38#define DEFAULT_THREAD_PRIO 0x18
39
45#define TCPIP_THREAD_STACKSIZE DEFAULT_THREAD_STACKSIZE
46
52#define TCPIP_THREAD_PRIO DEFAULT_THREAD_PRIO
53
54/*
55 ------------------------------------
56 ---------- Memory options ----------
57 ------------------------------------
58*/
59/* MEM_ALIGNMENT: should be set to the alignment of the CPU for which
60 lwIP is compiled. 4 byte alignment -> define MEM_ALIGNMENT to 4, 2
61 byte alignment -> define MEM_ALIGNMENT to 2. */
62#define MEM_ALIGNMENT 4
63
72#define LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT 1
73
78/* SP193: setting this too low may cause tcp_write() to fail when it tries to allocate from PBUF_RAM!
79 Up to TCP_SND_BUF * 2 segments may be transmitted at once, thanks to Nagle and Delayed Ack. */
80#define MEM_SIZE (TCP_SND_BUF * 2)
81
82/*
83 -----------------------------------------------
84 ---------- IP options -------------------------
85 -----------------------------------------------
86*/
93#define IP_REASSEMBLY 0
94
99#define IP_FRAG 0
100
101/*
102 ------------------------------------------------
103 ---------- Internal Memory Pool Sizes ----------
104 ------------------------------------------------
105*/
113#define MEMP_NUM_TCPIP_MSG_INPKT 24
114
119#define MEMP_NUM_NETCONN (MEMP_NUM_TCP_PCB+MEMP_NUM_UDP_PCB)
120
124#define PBUF_POOL_SIZE 32 //SP193: should be at least ((TCP_WND/PBUF_POOL_BUFSIZE)+1). But that is too small to handle simultaneous connections.
125
134#define LWIP_TCPIP_CORE_LOCKING 1
135
142#define LWIP_TCPIP_CORE_LOCKING_INPUT 1
143
144/*
145 ---------------------------------
146 ---------- TCP options ----------
147 ---------------------------------
148*/
149/* TCP Maximum segment size. */
150#define TCP_MSS 1460
151
152/* TCP sender buffer space (bytes). */
153#define TCP_SND_BUF (TCP_MSS*4)
154
155/* TCP receive window. */
156#define TCP_WND 32768
157
158/* ---------- DHCP options ---------- */
159#ifdef PS2IP_DHCP
163#define LWIP_DHCP 1
164#endif
165
173#define LWIP_DHCP_DOES_ACD_CHECK 0
174#define LWIP_ACD 0
175
176/*
177 ----------------------------------
178 ---------- DNS options -----------
179 ----------------------------------
180*/
185#ifdef PS2IP_DNS
186#define LWIP_DNS 1
187#endif
188
189/* ---------- Statistics options ---------- */
193#define LWIP_STATS 0
194
195/*
196 --------------------------------------
197 ---------- Checksum options ----------
198 --------------------------------------
199*/
200//Rely on the Ethernet checksums to reduce the number of checksum compuations. If you require any of these, re-enable them.
204#define CHECKSUM_CHECK_IP 0
205
209#define CHECKSUM_CHECK_UDP 0
210
214#define CHECKSUM_CHECK_TCP 0
215
219#define CHECKSUM_CHECK_ICMP 0
220
224#define CHECKSUM_CHECK_ICMP6 0
225
230#define LWIP_CHECKSUM_ON_COPY 1
231
232/*
233 ------------------------------------
234 ---------- Socket options ----------
235 ------------------------------------
236*/
242#define LWIP_POSIX_SOCKETS_IO_NAMES 0
243
244/*
245 ----------------------------------
246 ---------- DNS options -----------
247 ----------------------------------
248*/
253#define LWIP_DNS_SECURE 0
254
255/*
256 ------------------------------------------------
257 ---------- Network Interfaces options ----------
258 ------------------------------------------------
259*/
269#define LWIP_NETIF_TX_SINGLE_PBUF 1
270
271#endif /* __LWIPOPTS_H__ */