ReactOS 0.4.16-dev-297-gc569aee
lwipopts.h
Go to the documentation of this file.
1/*
2 ------------------------------------
3 ---------- Memory options ----------
4 ------------------------------------
5*/
6
7/* This combo allows us to implement malloc, free, and realloc ourselves */
8#define MEM_LIBC_MALLOC 1
9#define MEMP_MEM_MALLOC 1
10
11/* Define LWIP_COMPAT_MUTEX if the port has no mutexes and binary semaphores
12 should be used instead */
13#define LWIP_COMPAT_MUTEX 1
14#define LWIP_COMPAT_MUTEX_ALLOWED 1
15
16#define MEM_ALIGNMENT 4
17
18#define LWIP_ARP 0
19
20#define ETH_PAD_SIZE 2
21
22#define IP_REASS_MAX_PBUFS 0xFFFFFFFF
23
24#define IP_DEFAULT_TTL 128
25
26#define IP_SOF_BROADCAST 1
27
28#define IP_SOF_BROADCAST_RECV 1
29
30#define LWIP_ICMP 0
31
32#define LWIP_RAW 0
33
34#define LWIP_UDP 0
35
36#define SO_REUSE 1
37
38#define SO_REUSE_RXTOALL 1
39
40/* FIXME: These MSS and TCP Window definitions assume an MTU
41 * of 1500. We need to add some code to lwIP which would allow us
42 * to change these values based upon the interface we are
43 * using. Currently ReactOS only supports Ethernet so we're
44 * fine for now but it does need to be fixed later when we
45 * add support for other transport mediums */
46#define TCP_MSS 1460
47
48#define TCP_WND 0xFFFF
49
50#define TCP_SND_BUF TCP_WND
51
52#define TCP_MAXRTX 8
53
54#define TCP_SYNMAXRTX 4
55
56#define TCP_LISTEN_BACKLOG 1
57
58#define LWIP_TCP_TIMESTAMPS 1
59
60#define LWIP_SOCKET 0
61
62#define LWIP_NETCONN 0
63
64#define LWIP_STATS 0
65
66#define ICMP_STATS 0
67
68/*
69 ---------------------------------------
70 ---------- Debugging options ----------
71 ---------------------------------------
72*/
73
77#define TCP_DEBUG LWIP_DBG_ON