1195972f6Sopenharmony_ci/* 2195972f6Sopenharmony_ci * Copyright (c) 2001-2003 Swedish Institute of Computer Science. 3195972f6Sopenharmony_ci * All rights reserved. 4195972f6Sopenharmony_ci * 5195972f6Sopenharmony_ci * Redistribution and use in source and binary forms, with or without modification, 6195972f6Sopenharmony_ci * are permitted provided that the following conditions are met: 7195972f6Sopenharmony_ci * 8195972f6Sopenharmony_ci * 1. Redistributions of source code must retain the above copyright notice, 9195972f6Sopenharmony_ci * this list of conditions and the following disclaimer. 10195972f6Sopenharmony_ci * 2. Redistributions in binary form must reproduce the above copyright notice, 11195972f6Sopenharmony_ci * this list of conditions and the following disclaimer in the documentation 12195972f6Sopenharmony_ci * and/or other materials provided with the distribution. 13195972f6Sopenharmony_ci * 3. The name of the author may not be used to endorse or promote products 14195972f6Sopenharmony_ci * derived from this software without specific prior written permission. 15195972f6Sopenharmony_ci * 16195972f6Sopenharmony_ci * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED 17195972f6Sopenharmony_ci * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 18195972f6Sopenharmony_ci * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT 19195972f6Sopenharmony_ci * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 20195972f6Sopenharmony_ci * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT 21195972f6Sopenharmony_ci * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 22195972f6Sopenharmony_ci * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 23195972f6Sopenharmony_ci * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 24195972f6Sopenharmony_ci * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY 25195972f6Sopenharmony_ci * OF SUCH DAMAGE. 26195972f6Sopenharmony_ci * 27195972f6Sopenharmony_ci * This file is part of the lwIP TCP/IP stack. 28195972f6Sopenharmony_ci * 29195972f6Sopenharmony_ci * Author: Simon Goldschmidt 30195972f6Sopenharmony_ci * 31195972f6Sopenharmony_ci */ 32195972f6Sopenharmony_ci#ifndef LWIP_HDR_LWIPOPTS_H 33195972f6Sopenharmony_ci#define LWIP_HDR_LWIPOPTS_H 34195972f6Sopenharmony_ci 35195972f6Sopenharmony_ci#define LWIP_TESTMODE 1 36195972f6Sopenharmony_ci 37195972f6Sopenharmony_ci#define LWIP_IPV6 1 38195972f6Sopenharmony_ci 39195972f6Sopenharmony_ci#define LWIP_CHECKSUM_ON_COPY 1 40195972f6Sopenharmony_ci#define TCP_CHECKSUM_ON_COPY_SANITY_CHECK 1 41195972f6Sopenharmony_ci#define TCP_CHECKSUM_ON_COPY_SANITY_CHECK_FAIL(printfmsg) LWIP_ASSERT("TCP_CHECKSUM_ON_COPY_SANITY_CHECK_FAIL", 0) 42195972f6Sopenharmony_ci 43195972f6Sopenharmony_ci/* We link to special sys_arch.c (for basic non-waiting API layers unit tests) */ 44195972f6Sopenharmony_ci#define NO_SYS 0 45195972f6Sopenharmony_ci#define SYS_LIGHTWEIGHT_PROT 0 46195972f6Sopenharmony_ci#define LWIP_NETCONN !NO_SYS 47195972f6Sopenharmony_ci#define LWIP_SOCKET !NO_SYS 48195972f6Sopenharmony_ci#define LWIP_NETCONN_FULLDUPLEX LWIP_SOCKET 49195972f6Sopenharmony_ci#define LWIP_NETCONN_SEM_PER_THREAD 1 50195972f6Sopenharmony_ci#define LWIP_NETBUF_RECVINFO 1 51195972f6Sopenharmony_ci#define LWIP_HAVE_LOOPIF 1 52195972f6Sopenharmony_ci#define TCPIP_THREAD_TEST 53195972f6Sopenharmony_ci 54195972f6Sopenharmony_ci/* Enable DHCP to test it, disable UDP checksum to easier inject packets */ 55195972f6Sopenharmony_ci#define LWIP_DHCP 1 56195972f6Sopenharmony_ci 57195972f6Sopenharmony_ci/* Minimal changes to opt.h required for tcp unit tests: */ 58195972f6Sopenharmony_ci#define MEM_SIZE 16000 59195972f6Sopenharmony_ci#define TCP_SND_QUEUELEN 40 60195972f6Sopenharmony_ci#define MEMP_NUM_TCP_SEG TCP_SND_QUEUELEN 61195972f6Sopenharmony_ci#define TCP_SND_BUF (12 * TCP_MSS) 62195972f6Sopenharmony_ci#define TCP_WND (10 * TCP_MSS) 63195972f6Sopenharmony_ci#define LWIP_WND_SCALE 1 64195972f6Sopenharmony_ci#define TCP_RCV_SCALE 0 65195972f6Sopenharmony_ci#define PBUF_POOL_SIZE 400 /* pbuf tests need ~200KByte */ 66195972f6Sopenharmony_ci 67195972f6Sopenharmony_ci/* Enable IGMP and MDNS for MDNS tests */ 68195972f6Sopenharmony_ci#define LWIP_IGMP 1 69195972f6Sopenharmony_ci#define LWIP_MDNS_RESPONDER 1 70195972f6Sopenharmony_ci#define LWIP_NUM_NETIF_CLIENT_DATA (LWIP_MDNS_RESPONDER) 71195972f6Sopenharmony_ci 72195972f6Sopenharmony_ci/* Minimal changes to opt.h required for etharp unit tests: */ 73195972f6Sopenharmony_ci#define ETHARP_SUPPORT_STATIC_ENTRIES 1 74195972f6Sopenharmony_ci 75195972f6Sopenharmony_ci#define MEMP_NUM_SYS_TIMEOUT (LWIP_NUM_SYS_TIMEOUT_INTERNAL + 8) 76195972f6Sopenharmony_ci 77195972f6Sopenharmony_ci/* MIB2 stats are required to check IPv4 reassembly results */ 78195972f6Sopenharmony_ci#define MIB2_STATS 1 79195972f6Sopenharmony_ci 80195972f6Sopenharmony_ci/* netif tests want to test this, so enable: */ 81195972f6Sopenharmony_ci#define LWIP_NETIF_EXT_STATUS_CALLBACK 1 82195972f6Sopenharmony_ci 83195972f6Sopenharmony_ci/* Check lwip_stats.mem.illegal instead of asserting */ 84195972f6Sopenharmony_ci#define LWIP_MEM_ILLEGAL_FREE(msg) /* to nothing */ 85195972f6Sopenharmony_ci 86195972f6Sopenharmony_ci#endif /* LWIP_HDR_LWIPOPTS_H */ 87