2010-09-21 06:11:24 +00:00
|
|
|
/*
|
|
|
|
------------------------------------
|
|
|
|
---------- Memory options ----------
|
|
|
|
------------------------------------
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* This combo allows us to implement malloc, free, and realloc ourselves */
|
|
|
|
#define MEM_LIBC_MALLOC 1
|
|
|
|
#define MEMP_MEM_MALLOC 1
|
|
|
|
|
2010-11-02 04:05:34 +00:00
|
|
|
/* Define LWIP_COMPAT_MUTEX if the port has no mutexes and binary semaphores
|
|
|
|
should be used instead */
|
|
|
|
#define LWIP_COMPAT_MUTEX 1
|
|
|
|
|
2010-09-21 06:11:24 +00:00
|
|
|
#define MEM_ALIGNMENT 4
|
|
|
|
|
|
|
|
#define LWIP_ARP 0
|
|
|
|
|
2011-07-12 14:06:50 +00:00
|
|
|
#define ETH_PAD_SIZE 2
|
|
|
|
|
2010-09-21 06:11:24 +00:00
|
|
|
#define IP_REASS_MAX_PBUFS 0xFFFFFFFF
|
|
|
|
|
|
|
|
#define IP_DEFAULT_TTL 128
|
|
|
|
|
|
|
|
#define IP_SOF_BROADCAST 1
|
|
|
|
|
|
|
|
#define IP_SOF_BROADCAST_RECV 1
|
|
|
|
|
|
|
|
#define LWIP_ICMP 0
|
|
|
|
|
|
|
|
#define LWIP_RAW 0
|
|
|
|
|
|
|
|
#define LWIP_UDP 0
|
|
|
|
|
2012-08-20 07:26:12 +00:00
|
|
|
#define SO_REUSE 1
|
|
|
|
|
2012-08-20 07:29:40 +00:00
|
|
|
#define SO_REUSE_RXTOALL 1
|
|
|
|
|
2011-08-09 19:55:12 +00:00
|
|
|
/* FIXME: These MSS and TCP Window definitions assume an MTU
|
|
|
|
* of 1500. We need to add some code to lwIP which would allow us
|
2021-06-11 12:29:21 +00:00
|
|
|
* to change these values based upon the interface we are
|
2011-08-09 19:55:12 +00:00
|
|
|
* using. Currently ReactOS only supports Ethernet so we're
|
|
|
|
* fine for now but it does need to be fixed later when we
|
|
|
|
* add support for other transport mediums */
|
|
|
|
#define TCP_MSS 1460
|
2010-09-21 06:11:24 +00:00
|
|
|
|
2012-08-28 00:36:47 +00:00
|
|
|
#define TCP_WND 0xFFFF
|
2010-09-21 06:11:24 +00:00
|
|
|
|
2011-08-09 19:55:12 +00:00
|
|
|
#define TCP_SND_BUF TCP_WND
|
2010-09-21 06:11:24 +00:00
|
|
|
|
2011-08-09 19:55:12 +00:00
|
|
|
#define TCP_MAXRTX 8
|
2010-09-21 06:11:24 +00:00
|
|
|
|
|
|
|
#define TCP_SYNMAXRTX 4
|
|
|
|
|
|
|
|
#define TCP_LISTEN_BACKLOG 1
|
|
|
|
|
|
|
|
#define LWIP_TCP_TIMESTAMPS 1
|
|
|
|
|
|
|
|
#define LWIP_SOCKET 0
|
|
|
|
|
|
|
|
#define LWIP_NETCONN 0
|
|
|
|
|
|
|
|
#define LWIP_STATS 0
|
|
|
|
|
|
|
|
#define ICMP_STATS 0
|
|
|
|
|
|
|
|
/*
|
|
|
|
---------------------------------------
|
|
|
|
---------- Debugging options ----------
|
|
|
|
---------------------------------------
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* TCP_DEBUG: Enable debugging for TCP.
|
|
|
|
*/
|
2011-05-24 18:05:51 +00:00
|
|
|
#define TCP_DEBUG LWIP_DBG_ON
|