BadVPN – Blame information for rev 1

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 office 1 /**
2 * @file lwipopts.h
3 * @author Ambroz Bizjak <ambrop7@gmail.com>
4 *
5 * @section LICENSE
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions are met:
9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 * 2. Redistributions in binary form must reproduce the above copyright
12 * notice, this list of conditions and the following disclaimer in the
13 * documentation and/or other materials provided with the distribution.
14 * 3. Neither the name of the author nor the
15 * names of its contributors may be used to endorse or promote products
16 * derived from this software without specific prior written permission.
17 *
18 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
19 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21 * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
22 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
24 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
25 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
27 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 */
29  
30 #ifndef LWIP_CUSTOM_LWIPOPTS_H
31 #define LWIP_CUSTOM_LWIPOPTS_H
32  
33 #define NO_SYS 1
34 #define LWIP_TIMERS 0
35 #define MEM_ALIGNMENT 4
36  
37 #define LWIP_ARP 0
38 #define ARP_QUEUEING 0
39 #define IP_FORWARD 0
40 #define LWIP_ICMP 1
41 #define LWIP_RAW 0
42 #define LWIP_DHCP 0
43 #define LWIP_AUTOIP 0
44 #define LWIP_SNMP 0
45 #define LWIP_IGMP 0
46 #define LWIP_DNS 0
47 #define LWIP_UDP 0
48 #define LWIP_UDPLITE 0
49 #define LWIP_TCP 1
50 #define LWIP_CALLBACK_API 1
51 #define LWIP_NETIF_API 0
52 #define LWIP_NETIF_LOOPBACK 0
53 #define LWIP_HAVE_LOOPIF 0
54 #define LWIP_HAVE_SLIPIF 0
55 #define LWIP_NETCONN 0
56 #define LWIP_SOCKET 0
57 #define PPP_SUPPORT 0
58 #define LWIP_IPV6 1
59 #define LWIP_IPV6_MLD 0
60 #define LWIP_IPV6_AUTOCONFIG 0
61  
62 #define MEMP_NUM_TCP_PCB_LISTEN 16
63 #define MEMP_NUM_TCP_PCB 1024
64 #define TCP_MSS 1460
65 #define TCP_SND_BUF 16384
66 #define TCP_SND_QUEUELEN (4 * (TCP_SND_BUF)/(TCP_MSS))
67  
68 #define MEM_LIBC_MALLOC 1
69 #define MEMP_MEM_MALLOC 1
70  
71 #define LWIP_PERF 0
72 #define SYS_LIGHTWEIGHT_PROT 0
73 #define LWIP_DONT_PROVIDE_BYTEORDER_FUNCTIONS
74  
75 // needed on 64-bit systems, enable it always so that the same configuration
76 // is used regardless of the platform
77 #define IPV6_FRAG_COPYHEADER 1
78  
79 /*
80 #define LWIP_DEBUG 1
81 #define IP_DEBUG LWIP_DBG_ON
82 #define NETIF_DEBUG LWIP_DBG_ON
83 #define TCP_DEBUG LWIP_DBG_ON
84 #define TCP_INPUT_DEBUG LWIP_DBG_ON
85 #define TCP_OUTPUT_DEBUG LWIP_DBG_ON
86 */
87  
88 #endif