reactos/drivers/network/tcpip/include/lwip/lwipopts.h
Hervé Poussineau d6eebaa47a [TCPIP] Synchronize LWIP code to 2.2.0
- take code from STABLE-2_2_0_RELEASE commit on https://git.savannah.gnu.org/git/lwip.git
- remove lwip/contrib directory
- do required changes due to upgrade in
  * CMakeLists.txt
  * include/lwip/arch/cc.h
  * include/lwip/arch/sys_arch.h
  * include/lwip/lwipopts.h
  * include/tcpip.h
  * ip/CMakeLists.txt
  * ip/lwip_glue/lwip_glue.h
  * ip/lwip_glue/tcp.c
  * ip/transport/tcp/if.c
  * tcpip/icmp.c

CORE-13098
2024-11-03 22:49:45 +01:00

77 lines
2 KiB
C

/*
------------------------------------
---------- Memory options ----------
------------------------------------
*/
/* This combo allows us to implement malloc, free, and realloc ourselves */
#define MEM_LIBC_MALLOC 1
#define MEMP_MEM_MALLOC 1
/* Define LWIP_COMPAT_MUTEX if the port has no mutexes and binary semaphores
should be used instead */
#define LWIP_COMPAT_MUTEX 1
#define LWIP_COMPAT_MUTEX_ALLOWED 1
#define MEM_ALIGNMENT 4
#define LWIP_ARP 0
#define ETH_PAD_SIZE 2
#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
#define SO_REUSE 1
#define SO_REUSE_RXTOALL 1
/* FIXME: These MSS and TCP Window definitions assume an MTU
* of 1500. We need to add some code to lwIP which would allow us
* to change these values based upon the interface we are
* 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
#define TCP_WND 0xFFFF
#define TCP_SND_BUF TCP_WND
#define TCP_MAXRTX 8
#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.
*/
#define TCP_DEBUG LWIP_DBG_ON