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/* Prevent having to link sys_arch.c (we don't test the API layers in unit tests) */ 36195972f6Sopenharmony_ci#define NO_SYS 1 37195972f6Sopenharmony_ci#define LWIP_NETCONN 0 38195972f6Sopenharmony_ci#define LWIP_SOCKET 0 39195972f6Sopenharmony_ci#define SYS_LIGHTWEIGHT_PROT 0 40195972f6Sopenharmony_ci 41195972f6Sopenharmony_ci#define LWIP_IPV6 1 42195972f6Sopenharmony_ci#define IPV6_FRAG_COPYHEADER 1 43195972f6Sopenharmony_ci#define LWIP_IPV6_DUP_DETECT_ATTEMPTS 0 44195972f6Sopenharmony_ci 45195972f6Sopenharmony_ci/* Enable some protocols to test them */ 46195972f6Sopenharmony_ci#define LWIP_DHCP 1 47195972f6Sopenharmony_ci#define LWIP_AUTOIP 1 48195972f6Sopenharmony_ci 49195972f6Sopenharmony_ci#define LWIP_IGMP 1 50195972f6Sopenharmony_ci#define LWIP_DNS 1 51195972f6Sopenharmony_ci 52195972f6Sopenharmony_ci#define LWIP_ALTCP 1 53195972f6Sopenharmony_ci 54195972f6Sopenharmony_ci/* Turn off checksum verification of fuzzed data */ 55195972f6Sopenharmony_ci#define CHECKSUM_CHECK_IP 0 56195972f6Sopenharmony_ci#define CHECKSUM_CHECK_UDP 0 57195972f6Sopenharmony_ci#define CHECKSUM_CHECK_TCP 0 58195972f6Sopenharmony_ci#define CHECKSUM_CHECK_ICMP 0 59195972f6Sopenharmony_ci#define CHECKSUM_CHECK_ICMP6 0 60195972f6Sopenharmony_ci 61195972f6Sopenharmony_ci/* Minimal changes to opt.h required for tcp unit tests: */ 62195972f6Sopenharmony_ci#define MEM_SIZE 16000 63195972f6Sopenharmony_ci#define TCP_SND_QUEUELEN 40 64195972f6Sopenharmony_ci#define MEMP_NUM_TCP_SEG TCP_SND_QUEUELEN 65195972f6Sopenharmony_ci#define TCP_OVERSIZE 1 66195972f6Sopenharmony_ci#define TCP_SND_BUF (12 * TCP_MSS) 67195972f6Sopenharmony_ci#define TCP_WND (10 * TCP_MSS) 68195972f6Sopenharmony_ci#define LWIP_WND_SCALE 1 69195972f6Sopenharmony_ci#define TCP_RCV_SCALE 2 70195972f6Sopenharmony_ci#define PBUF_POOL_SIZE 400 /* pbuf tests need ~200KByte */ 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 LWIP_NUM_NETIF_CLIENT_DATA 1 76195972f6Sopenharmony_ci#define LWIP_SNMP 1 77195972f6Sopenharmony_ci#define MIB2_STATS 1 78195972f6Sopenharmony_ci#define LWIP_MDNS_RESPONDER 1 79195972f6Sopenharmony_ci 80195972f6Sopenharmony_ci#endif /* LWIP_HDR_LWIPOPTS_H__ */ 81