19cfd8dd9Shpoussin /* 29cfd8dd9Shpoussin ------------------------------------ 39cfd8dd9Shpoussin ---------- Memory options ---------- 49cfd8dd9Shpoussin ------------------------------------ 59cfd8dd9Shpoussin */ 69cfd8dd9Shpoussin 79cfd8dd9Shpoussin /* This combo allows us to implement malloc, free, and realloc ourselves */ 89cfd8dd9Shpoussin #define MEM_LIBC_MALLOC 1 99cfd8dd9Shpoussin #define MEMP_MEM_MALLOC 1 109cfd8dd9Shpoussin 119cfd8dd9Shpoussin /* Define LWIP_COMPAT_MUTEX if the port has no mutexes and binary semaphores 129cfd8dd9Shpoussin should be used instead */ 139cfd8dd9Shpoussin #define LWIP_COMPAT_MUTEX 1 14*d6eebaa4SHervé Poussineau #define LWIP_COMPAT_MUTEX_ALLOWED 1 159cfd8dd9Shpoussin 169cfd8dd9Shpoussin #define MEM_ALIGNMENT 4 179cfd8dd9Shpoussin 189cfd8dd9Shpoussin #define LWIP_ARP 0 199cfd8dd9Shpoussin 209cfd8dd9Shpoussin #define ETH_PAD_SIZE 2 219cfd8dd9Shpoussin 229cfd8dd9Shpoussin #define IP_REASS_MAX_PBUFS 0xFFFFFFFF 239cfd8dd9Shpoussin 249cfd8dd9Shpoussin #define IP_DEFAULT_TTL 128 259cfd8dd9Shpoussin 269cfd8dd9Shpoussin #define IP_SOF_BROADCAST 1 279cfd8dd9Shpoussin 289cfd8dd9Shpoussin #define IP_SOF_BROADCAST_RECV 1 299cfd8dd9Shpoussin 309cfd8dd9Shpoussin #define LWIP_ICMP 0 319cfd8dd9Shpoussin 329cfd8dd9Shpoussin #define LWIP_RAW 0 339cfd8dd9Shpoussin 349cfd8dd9Shpoussin #define LWIP_UDP 0 359cfd8dd9Shpoussin 369cfd8dd9Shpoussin #define SO_REUSE 1 379cfd8dd9Shpoussin 389cfd8dd9Shpoussin #define SO_REUSE_RXTOALL 1 399cfd8dd9Shpoussin 409cfd8dd9Shpoussin /* FIXME: These MSS and TCP Window definitions assume an MTU 419cfd8dd9Shpoussin * of 1500. We need to add some code to lwIP which would allow us 429cfd8dd9Shpoussin * to change these values based upon the interface we are 439cfd8dd9Shpoussin * using. Currently ReactOS only supports Ethernet so we're 449cfd8dd9Shpoussin * fine for now but it does need to be fixed later when we 459cfd8dd9Shpoussin * add support for other transport mediums */ 469cfd8dd9Shpoussin #define TCP_MSS 1460 479cfd8dd9Shpoussin 489cfd8dd9Shpoussin #define TCP_WND 0xFFFF 499cfd8dd9Shpoussin 509cfd8dd9Shpoussin #define TCP_SND_BUF TCP_WND 519cfd8dd9Shpoussin 529cfd8dd9Shpoussin #define TCP_MAXRTX 8 539cfd8dd9Shpoussin 549cfd8dd9Shpoussin #define TCP_SYNMAXRTX 4 559cfd8dd9Shpoussin 569cfd8dd9Shpoussin #define TCP_LISTEN_BACKLOG 1 579cfd8dd9Shpoussin 589cfd8dd9Shpoussin #define LWIP_TCP_TIMESTAMPS 1 599cfd8dd9Shpoussin 609cfd8dd9Shpoussin #define LWIP_SOCKET 0 619cfd8dd9Shpoussin 629cfd8dd9Shpoussin #define LWIP_NETCONN 0 639cfd8dd9Shpoussin 649cfd8dd9Shpoussin #define LWIP_STATS 0 659cfd8dd9Shpoussin 669cfd8dd9Shpoussin #define ICMP_STATS 0 679cfd8dd9Shpoussin 689cfd8dd9Shpoussin /* 699cfd8dd9Shpoussin --------------------------------------- 709cfd8dd9Shpoussin ---------- Debugging options ---------- 719cfd8dd9Shpoussin --------------------------------------- 729cfd8dd9Shpoussin */ 739cfd8dd9Shpoussin 749cfd8dd9Shpoussin /** 759cfd8dd9Shpoussin * TCP_DEBUG: Enable debugging for TCP. 769cfd8dd9Shpoussin */ 779cfd8dd9Shpoussin #define TCP_DEBUG LWIP_DBG_ON 78