Alvaro Cassinelli
/
skinGames_II
save loops
EthernetNetIf/LPC1768/lwip/lwipopts.h@1:3be7b7d050f4, 2014-12-02 (annotated)
- Committer:
- mbedalvaro
- Date:
- Tue Dec 02 08:29:59 2014 +0000
- Revision:
- 1:3be7b7d050f4
- Parent:
- 0:df6fdd9b99f0
updated
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mbedalvaro | 0:df6fdd9b99f0 | 1 | /* |
mbedalvaro | 0:df6fdd9b99f0 | 2 | * Copyright (c) 2001-2003 Swedish Institute of Computer Science. |
mbedalvaro | 0:df6fdd9b99f0 | 3 | * All rights reserved. |
mbedalvaro | 0:df6fdd9b99f0 | 4 | * |
mbedalvaro | 0:df6fdd9b99f0 | 5 | * Redistribution and use in source and binary forms, with or without modification, |
mbedalvaro | 0:df6fdd9b99f0 | 6 | * are permitted provided that the following conditions are met: |
mbedalvaro | 0:df6fdd9b99f0 | 7 | * |
mbedalvaro | 0:df6fdd9b99f0 | 8 | * 1. Redistributions of source code must retain the above copyright notice, |
mbedalvaro | 0:df6fdd9b99f0 | 9 | * this list of conditions and the following disclaimer. |
mbedalvaro | 0:df6fdd9b99f0 | 10 | * 2. Redistributions in binary form must reproduce the above copyright notice, |
mbedalvaro | 0:df6fdd9b99f0 | 11 | * this list of conditions and the following disclaimer in the documentation |
mbedalvaro | 0:df6fdd9b99f0 | 12 | * and/or other materials provided with the distribution. |
mbedalvaro | 0:df6fdd9b99f0 | 13 | * 3. The name of the author may not be used to endorse or promote products |
mbedalvaro | 0:df6fdd9b99f0 | 14 | * derived from this software without specific prior written permission. |
mbedalvaro | 0:df6fdd9b99f0 | 15 | * |
mbedalvaro | 0:df6fdd9b99f0 | 16 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED |
mbedalvaro | 0:df6fdd9b99f0 | 17 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF |
mbedalvaro | 0:df6fdd9b99f0 | 18 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT |
mbedalvaro | 0:df6fdd9b99f0 | 19 | * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, |
mbedalvaro | 0:df6fdd9b99f0 | 20 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT |
mbedalvaro | 0:df6fdd9b99f0 | 21 | * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
mbedalvaro | 0:df6fdd9b99f0 | 22 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
mbedalvaro | 0:df6fdd9b99f0 | 23 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING |
mbedalvaro | 0:df6fdd9b99f0 | 24 | * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY |
mbedalvaro | 0:df6fdd9b99f0 | 25 | * OF SUCH DAMAGE. |
mbedalvaro | 0:df6fdd9b99f0 | 26 | * |
mbedalvaro | 0:df6fdd9b99f0 | 27 | * This file is part of the lwIP TCP/IP stack. |
mbedalvaro | 0:df6fdd9b99f0 | 28 | * |
mbedalvaro | 0:df6fdd9b99f0 | 29 | * Author: Adam Dunkels <adam@sics.se> |
mbedalvaro | 0:df6fdd9b99f0 | 30 | * |
mbedalvaro | 0:df6fdd9b99f0 | 31 | */ |
mbedalvaro | 0:df6fdd9b99f0 | 32 | #ifndef __LWIPOPTS_H__ |
mbedalvaro | 0:df6fdd9b99f0 | 33 | #define __LWIPOPTS_H__ |
mbedalvaro | 0:df6fdd9b99f0 | 34 | |
mbedalvaro | 0:df6fdd9b99f0 | 35 | #include "netCfg.h" |
mbedalvaro | 0:df6fdd9b99f0 | 36 | #if NET_LWIP_STACK |
mbedalvaro | 0:df6fdd9b99f0 | 37 | |
mbedalvaro | 0:df6fdd9b99f0 | 38 | //#include "arch/sys_arch.h" |
mbedalvaro | 0:df6fdd9b99f0 | 39 | |
mbedalvaro | 0:df6fdd9b99f0 | 40 | /* <sys/time.h> is included in cc.h! */ |
mbedalvaro | 0:df6fdd9b99f0 | 41 | #define LWIP_TIMEVAL_PRIVATE 0 |
mbedalvaro | 0:df6fdd9b99f0 | 42 | |
mbedalvaro | 0:df6fdd9b99f0 | 43 | //#define __LWIP_DEBUG |
mbedalvaro | 0:df6fdd9b99f0 | 44 | #include "dbg/dbg.h" |
mbedalvaro | 0:df6fdd9b99f0 | 45 | |
mbedalvaro | 0:df6fdd9b99f0 | 46 | #ifdef __LWIP_DEBUG |
mbedalvaro | 0:df6fdd9b99f0 | 47 | |
mbedalvaro | 0:df6fdd9b99f0 | 48 | #define LWIP_DEBUG 1 |
mbedalvaro | 0:df6fdd9b99f0 | 49 | |
mbedalvaro | 0:df6fdd9b99f0 | 50 | #define LWIP_DBG_MIN_LEVEL 0 |
mbedalvaro | 0:df6fdd9b99f0 | 51 | //#define LWIP_COMPAT_SOCKETS 1 |
mbedalvaro | 0:df6fdd9b99f0 | 52 | #define TAPIF_DEBUG LWIP_DBG_OFF |
mbedalvaro | 0:df6fdd9b99f0 | 53 | #define TUNIF_DEBUG LWIP_DBG_OFF |
mbedalvaro | 0:df6fdd9b99f0 | 54 | #define UNIXIF_DEBUG LWIP_DBG_OFF |
mbedalvaro | 0:df6fdd9b99f0 | 55 | #define DELIF_DEBUG LWIP_DBG_OFF |
mbedalvaro | 0:df6fdd9b99f0 | 56 | #define SIO_FIFO_DEBUG LWIP_DBG_ON |
mbedalvaro | 0:df6fdd9b99f0 | 57 | #define TCPDUMP_DEBUG LWIP_DBG_ON |
mbedalvaro | 0:df6fdd9b99f0 | 58 | |
mbedalvaro | 0:df6fdd9b99f0 | 59 | #define PPP_DEBUG LWIP_DBG_OFF |
mbedalvaro | 0:df6fdd9b99f0 | 60 | #define MEM_DEBUG LWIP_DBG_OFF |
mbedalvaro | 0:df6fdd9b99f0 | 61 | #define MEMP_DEBUG LWIP_DBG_OFF |
mbedalvaro | 0:df6fdd9b99f0 | 62 | #define PBUF_DEBUG LWIP_DBG_OFF |
mbedalvaro | 0:df6fdd9b99f0 | 63 | #define API_LIB_DEBUG LWIP_DBG_OFF |
mbedalvaro | 0:df6fdd9b99f0 | 64 | #define API_MSG_DEBUG LWIP_DBG_OFF |
mbedalvaro | 0:df6fdd9b99f0 | 65 | #define TCPIP_DEBUG LWIP_DBG_OFF |
mbedalvaro | 0:df6fdd9b99f0 | 66 | #define NETIF_DEBUG LWIP_DBG_OFF |
mbedalvaro | 0:df6fdd9b99f0 | 67 | #define SOCKETS_DEBUG LWIP_DBG_OFF |
mbedalvaro | 0:df6fdd9b99f0 | 68 | #define DEMO_DEBUG LWIP_DBG_OFF |
mbedalvaro | 0:df6fdd9b99f0 | 69 | #define IP_DEBUG LWIP_DBG_OFF |
mbedalvaro | 0:df6fdd9b99f0 | 70 | #define IP_REASS_DEBUG LWIP_DBG_OFF |
mbedalvaro | 0:df6fdd9b99f0 | 71 | #define RAW_DEBUG LWIP_DBG_OFF |
mbedalvaro | 0:df6fdd9b99f0 | 72 | #define ICMP_DEBUG LWIP_DBG_OFF |
mbedalvaro | 0:df6fdd9b99f0 | 73 | #define IGMP_DEBUG LWIP_DBG_OFF |
mbedalvaro | 0:df6fdd9b99f0 | 74 | #define UDP_DEBUG LWIP_DBG_OFF |
mbedalvaro | 0:df6fdd9b99f0 | 75 | #define TCP_DEBUG LWIP_DBG_OFF |
mbedalvaro | 0:df6fdd9b99f0 | 76 | #define TCP_INPUT_DEBUG LWIP_DBG_OFF |
mbedalvaro | 0:df6fdd9b99f0 | 77 | #define TCP_OUTPUT_DEBUG LWIP_DBG_OFF |
mbedalvaro | 0:df6fdd9b99f0 | 78 | #define TCP_RTO_DEBUG LWIP_DBG_OFF |
mbedalvaro | 0:df6fdd9b99f0 | 79 | #define TCP_CWND_DEBUG LWIP_DBG_OFF |
mbedalvaro | 0:df6fdd9b99f0 | 80 | #define TCP_WND_DEBUG LWIP_DBG_OFF |
mbedalvaro | 0:df6fdd9b99f0 | 81 | #define TCP_FR_DEBUG LWIP_DBG_OFF |
mbedalvaro | 0:df6fdd9b99f0 | 82 | #define TCP_QLEN_DEBUG LWIP_DBG_OFF |
mbedalvaro | 0:df6fdd9b99f0 | 83 | #define TCP_RST_DEBUG LWIP_DBG_OFF |
mbedalvaro | 0:df6fdd9b99f0 | 84 | #define ETHARP_DEBUG LWIP_DBG_OFF |
mbedalvaro | 0:df6fdd9b99f0 | 85 | #define DNS_DEBUG LWIP_DBG_OFF |
mbedalvaro | 0:df6fdd9b99f0 | 86 | |
mbedalvaro | 0:df6fdd9b99f0 | 87 | #endif |
mbedalvaro | 0:df6fdd9b99f0 | 88 | |
mbedalvaro | 0:df6fdd9b99f0 | 89 | /* |
mbedalvaro | 0:df6fdd9b99f0 | 90 | extern unsigned char debug_flags; |
mbedalvaro | 0:df6fdd9b99f0 | 91 | #define LWIP_DBG_TYPES_ON debug_flags |
mbedalvaro | 0:df6fdd9b99f0 | 92 | */ |
mbedalvaro | 0:df6fdd9b99f0 | 93 | #define NO_SYS 1 |
mbedalvaro | 0:df6fdd9b99f0 | 94 | #define LWIP_SOCKET (NO_SYS==0) |
mbedalvaro | 0:df6fdd9b99f0 | 95 | #define LWIP_NETCONN (NO_SYS==0) |
mbedalvaro | 0:df6fdd9b99f0 | 96 | |
mbedalvaro | 0:df6fdd9b99f0 | 97 | |
mbedalvaro | 0:df6fdd9b99f0 | 98 | #define IP_FRAG_USES_STATIC_BUF 0 |
mbedalvaro | 0:df6fdd9b99f0 | 99 | |
mbedalvaro | 0:df6fdd9b99f0 | 100 | |
mbedalvaro | 0:df6fdd9b99f0 | 101 | |
mbedalvaro | 0:df6fdd9b99f0 | 102 | /* ---------- Memory options ---------- */ |
mbedalvaro | 0:df6fdd9b99f0 | 103 | /* MEM_ALIGNMENT: should be set to the alignment of the CPU for which |
mbedalvaro | 0:df6fdd9b99f0 | 104 | lwIP is compiled. 4 byte alignment -> define MEM_ALIGNMENT to 4, 2 |
mbedalvaro | 0:df6fdd9b99f0 | 105 | byte alignment -> define MEM_ALIGNMENT to 2. */ |
mbedalvaro | 0:df6fdd9b99f0 | 106 | /* MSVC port: intel processors don't need 4-byte alignment, |
mbedalvaro | 0:df6fdd9b99f0 | 107 | but are faster that way! */ |
mbedalvaro | 0:df6fdd9b99f0 | 108 | #define MEM_ALIGNMENT 4 |
mbedalvaro | 0:df6fdd9b99f0 | 109 | |
mbedalvaro | 0:df6fdd9b99f0 | 110 | /* MEM_SIZE: the size of the heap memory. If the application will send |
mbedalvaro | 0:df6fdd9b99f0 | 111 | a lot of data that needs to be copied, this should be set high. */ |
mbedalvaro | 0:df6fdd9b99f0 | 112 | //#define MEM_SIZE 10240 |
mbedalvaro | 0:df6fdd9b99f0 | 113 | |
mbedalvaro | 0:df6fdd9b99f0 | 114 | #if TARGET_LPC1768 |
mbedalvaro | 0:df6fdd9b99f0 | 115 | |
mbedalvaro | 0:df6fdd9b99f0 | 116 | |
mbedalvaro | 0:df6fdd9b99f0 | 117 | #define MEM_SIZE 3000 //2000 |
mbedalvaro | 0:df6fdd9b99f0 | 118 | |
mbedalvaro | 0:df6fdd9b99f0 | 119 | /// |
mbedalvaro | 0:df6fdd9b99f0 | 120 | |
mbedalvaro | 0:df6fdd9b99f0 | 121 | #define MEM_POSITION __attribute((section("AHBSRAM0"))) |
mbedalvaro | 0:df6fdd9b99f0 | 122 | |
mbedalvaro | 0:df6fdd9b99f0 | 123 | /* MEMP_NUM_PBUF: the number of memp struct pbufs. If the application |
mbedalvaro | 0:df6fdd9b99f0 | 124 | sends a lot of data out of ROM (or other static memory), this |
mbedalvaro | 0:df6fdd9b99f0 | 125 | should be set high. */ |
mbedalvaro | 0:df6fdd9b99f0 | 126 | #define MEMP_NUM_PBUF 16 |
mbedalvaro | 0:df6fdd9b99f0 | 127 | /* MEMP_NUM_RAW_PCB: the number of UDP protocol control blocks. One |
mbedalvaro | 0:df6fdd9b99f0 | 128 | per active RAW "connection". */ |
mbedalvaro | 0:df6fdd9b99f0 | 129 | //#define MEMP_NUM_RAW_PCB 3 |
mbedalvaro | 0:df6fdd9b99f0 | 130 | /* MEMP_NUM_UDP_PCB: the number of UDP protocol control blocks. One |
mbedalvaro | 0:df6fdd9b99f0 | 131 | per active UDP "connection". */ |
mbedalvaro | 0:df6fdd9b99f0 | 132 | #define MEMP_NUM_UDP_PCB 4 |
mbedalvaro | 0:df6fdd9b99f0 | 133 | /* MEMP_NUM_TCP_PCB: the number of simulatenously active TCP |
mbedalvaro | 0:df6fdd9b99f0 | 134 | connections. */ |
mbedalvaro | 0:df6fdd9b99f0 | 135 | #define MEMP_NUM_TCP_PCB 3 |
mbedalvaro | 0:df6fdd9b99f0 | 136 | /* MEMP_NUM_TCP_PCB_LISTEN: the number of listening TCP |
mbedalvaro | 0:df6fdd9b99f0 | 137 | connections. */ |
mbedalvaro | 0:df6fdd9b99f0 | 138 | #define MEMP_NUM_TCP_PCB_LISTEN 2//4 |
mbedalvaro | 0:df6fdd9b99f0 | 139 | /* MEMP_NUM_TCP_SEG: the number of simultaneously queued TCP |
mbedalvaro | 0:df6fdd9b99f0 | 140 | segments. */ |
mbedalvaro | 0:df6fdd9b99f0 | 141 | #define MEMP_NUM_TCP_SEG 16 |
mbedalvaro | 0:df6fdd9b99f0 | 142 | /* MEMP_NUM_SYS_TIMEOUT: the number of simulateously active |
mbedalvaro | 0:df6fdd9b99f0 | 143 | timeouts. */ |
mbedalvaro | 0:df6fdd9b99f0 | 144 | #define MEMP_NUM_SYS_TIMEOUT 12 |
mbedalvaro | 0:df6fdd9b99f0 | 145 | |
mbedalvaro | 0:df6fdd9b99f0 | 146 | /* The following four are used only with the sequential API and can be |
mbedalvaro | 0:df6fdd9b99f0 | 147 | set to 0 if the application only will use the raw API. */ |
mbedalvaro | 0:df6fdd9b99f0 | 148 | /* MEMP_NUM_NETBUF: the number of struct netbufs. */ |
mbedalvaro | 0:df6fdd9b99f0 | 149 | #define MEMP_NUM_NETBUF 0 |
mbedalvaro | 0:df6fdd9b99f0 | 150 | /* MEMP_NUM_NETCONN: the number of struct netconns. */ |
mbedalvaro | 0:df6fdd9b99f0 | 151 | #define MEMP_NUM_NETCONN 0 |
mbedalvaro | 0:df6fdd9b99f0 | 152 | /* MEMP_NUM_TCPIP_MSG_*: the number of struct tcpip_msg, which is used |
mbedalvaro | 0:df6fdd9b99f0 | 153 | for sequential API communication and incoming packets. Used in |
mbedalvaro | 0:df6fdd9b99f0 | 154 | src/api/tcpip.c. */ |
mbedalvaro | 0:df6fdd9b99f0 | 155 | #define MEMP_NUM_TCPIP_MSG_API 0 |
mbedalvaro | 0:df6fdd9b99f0 | 156 | #define MEMP_NUM_TCPIP_MSG_INPKT 0 |
mbedalvaro | 0:df6fdd9b99f0 | 157 | |
mbedalvaro | 0:df6fdd9b99f0 | 158 | /* ---------- Pbuf options ---------- */ |
mbedalvaro | 0:df6fdd9b99f0 | 159 | /* PBUF_POOL_SIZE: the number of buffers in the pbuf pool. */ |
mbedalvaro | 0:df6fdd9b99f0 | 160 | #define PBUF_POOL_SIZE 8//16//100 |
mbedalvaro | 0:df6fdd9b99f0 | 161 | |
mbedalvaro | 0:df6fdd9b99f0 | 162 | /* PBUF_POOL_BUFSIZE: the size of each pbuf in the pbuf pool. */ |
mbedalvaro | 0:df6fdd9b99f0 | 163 | //#define PBUF_POOL_BUFSIZE 128 |
mbedalvaro | 0:df6fdd9b99f0 | 164 | |
mbedalvaro | 0:df6fdd9b99f0 | 165 | /* PBUF_LINK_HLEN: the number of bytes that should be allocated for a |
mbedalvaro | 0:df6fdd9b99f0 | 166 | link level header. */ |
mbedalvaro | 0:df6fdd9b99f0 | 167 | //#define PBUF_LINK_HLEN 16 |
mbedalvaro | 0:df6fdd9b99f0 | 168 | |
mbedalvaro | 0:df6fdd9b99f0 | 169 | /** SYS_LIGHTWEIGHT_PROT |
mbedalvaro | 0:df6fdd9b99f0 | 170 | * define SYS_LIGHTWEIGHT_PROT in lwipopts.h if you want inter-task protection |
mbedalvaro | 0:df6fdd9b99f0 | 171 | * for certain critical regions during buffer allocation, deallocation and memory |
mbedalvaro | 0:df6fdd9b99f0 | 172 | * allocation and deallocation. |
mbedalvaro | 0:df6fdd9b99f0 | 173 | */ |
mbedalvaro | 0:df6fdd9b99f0 | 174 | #define SYS_LIGHTWEIGHT_PROT 0 //No sys here |
mbedalvaro | 0:df6fdd9b99f0 | 175 | |
mbedalvaro | 0:df6fdd9b99f0 | 176 | /* ---------- TCP options ---------- */ |
mbedalvaro | 0:df6fdd9b99f0 | 177 | #define LWIP_TCP 1 |
mbedalvaro | 0:df6fdd9b99f0 | 178 | //#define TCP_TTL 255 |
mbedalvaro | 0:df6fdd9b99f0 | 179 | |
mbedalvaro | 0:df6fdd9b99f0 | 180 | /* Controls if TCP should queue segments that arrive out of |
mbedalvaro | 0:df6fdd9b99f0 | 181 | order. Define to 0 if your device is low on memory. */ |
mbedalvaro | 0:df6fdd9b99f0 | 182 | #define TCP_QUEUE_OOSEQ 1 |
mbedalvaro | 0:df6fdd9b99f0 | 183 | |
mbedalvaro | 0:df6fdd9b99f0 | 184 | /* TCP Maximum segment size. */ |
mbedalvaro | 0:df6fdd9b99f0 | 185 | //#define TCP_MSS 1024 |
mbedalvaro | 0:df6fdd9b99f0 | 186 | #define TCP_MSS 536//1024//536//0x276 |
mbedalvaro | 0:df6fdd9b99f0 | 187 | |
mbedalvaro | 0:df6fdd9b99f0 | 188 | /* TCP sender buffer space (bytes). */ |
mbedalvaro | 0:df6fdd9b99f0 | 189 | #define TCP_SND_BUF (3 * TCP_MSS) //2048 |
mbedalvaro | 0:df6fdd9b99f0 | 190 | |
mbedalvaro | 0:df6fdd9b99f0 | 191 | /* TCP sender buffer space (pbufs). This must be at least = 2 * |
mbedalvaro | 0:df6fdd9b99f0 | 192 | TCP_SND_BUF/TCP_MSS for things to work. */ |
mbedalvaro | 0:df6fdd9b99f0 | 193 | #define TCP_SND_QUEUELEN (4 * (TCP_SND_BUF)/(TCP_MSS)) |
mbedalvaro | 0:df6fdd9b99f0 | 194 | |
mbedalvaro | 0:df6fdd9b99f0 | 195 | /* TCP writable space (bytes). This must be less than or equal |
mbedalvaro | 0:df6fdd9b99f0 | 196 | to TCP_SND_BUF. It is the amount of space which must be |
mbedalvaro | 0:df6fdd9b99f0 | 197 | available in the tcp snd_buf for select to return writable */ |
mbedalvaro | 0:df6fdd9b99f0 | 198 | #define TCP_SNDLOWAT ((TCP_SND_BUF)/2) |
mbedalvaro | 0:df6fdd9b99f0 | 199 | |
mbedalvaro | 0:df6fdd9b99f0 | 200 | /** |
mbedalvaro | 0:df6fdd9b99f0 | 201 | * TCP_WND: The size of a TCP window. This must be at least |
mbedalvaro | 0:df6fdd9b99f0 | 202 | * (2 * TCP_MSS) for things to work well |
mbedalvaro | 0:df6fdd9b99f0 | 203 | */ |
mbedalvaro | 0:df6fdd9b99f0 | 204 | /* TCP receive window. */ |
mbedalvaro | 0:df6fdd9b99f0 | 205 | #define TCP_WND (4 * TCP_MSS) //8096 |
mbedalvaro | 0:df6fdd9b99f0 | 206 | |
mbedalvaro | 0:df6fdd9b99f0 | 207 | /* Maximum number of retransmissions of data segments. */ |
mbedalvaro | 0:df6fdd9b99f0 | 208 | //#define TCP_MAXRTX 12 |
mbedalvaro | 0:df6fdd9b99f0 | 209 | |
mbedalvaro | 0:df6fdd9b99f0 | 210 | /* Maximum number of retransmissions of SYN segments. */ |
mbedalvaro | 0:df6fdd9b99f0 | 211 | //#define TCP_SYNMAXRTX 4 |
mbedalvaro | 0:df6fdd9b99f0 | 212 | |
mbedalvaro | 0:df6fdd9b99f0 | 213 | #elif TARGET_LPC2368 |
mbedalvaro | 0:df6fdd9b99f0 | 214 | |
mbedalvaro | 0:df6fdd9b99f0 | 215 | #define MEM_POSITION __attribute((section("AHBSRAM1"))) |
mbedalvaro | 0:df6fdd9b99f0 | 216 | |
mbedalvaro | 0:df6fdd9b99f0 | 217 | /* MEMP_NUM_PBUF: the number of memp struct pbufs. If the application |
mbedalvaro | 0:df6fdd9b99f0 | 218 | sends a lot of data out of ROM (or other static memory), this |
mbedalvaro | 0:df6fdd9b99f0 | 219 | should be set high. */ |
mbedalvaro | 0:df6fdd9b99f0 | 220 | #define MEMP_NUM_PBUF 8 |
mbedalvaro | 0:df6fdd9b99f0 | 221 | /* MEMP_NUM_RAW_PCB: the number of UDP protocol control blocks. One |
mbedalvaro | 0:df6fdd9b99f0 | 222 | per active RAW "connection". */ |
mbedalvaro | 0:df6fdd9b99f0 | 223 | //#define MEMP_NUM_RAW_PCB 3 |
mbedalvaro | 0:df6fdd9b99f0 | 224 | /* MEMP_NUM_UDP_PCB: the number of UDP protocol control blocks. One |
mbedalvaro | 0:df6fdd9b99f0 | 225 | per active UDP "connection". */ |
mbedalvaro | 0:df6fdd9b99f0 | 226 | #define MEMP_NUM_UDP_PCB 2 |
mbedalvaro | 0:df6fdd9b99f0 | 227 | /* MEMP_NUM_TCP_PCB: the number of simulatenously active TCP |
mbedalvaro | 0:df6fdd9b99f0 | 228 | connections. */ |
mbedalvaro | 0:df6fdd9b99f0 | 229 | #define MEMP_NUM_TCP_PCB 2 |
mbedalvaro | 0:df6fdd9b99f0 | 230 | /* MEMP_NUM_TCP_PCB_LISTEN: the number of listening TCP |
mbedalvaro | 0:df6fdd9b99f0 | 231 | connections. */ |
mbedalvaro | 0:df6fdd9b99f0 | 232 | #define MEMP_NUM_TCP_PCB_LISTEN 2//4 |
mbedalvaro | 0:df6fdd9b99f0 | 233 | /* MEMP_NUM_TCP_SEG: the number of simultaneously queued TCP |
mbedalvaro | 0:df6fdd9b99f0 | 234 | segments. */ |
mbedalvaro | 0:df6fdd9b99f0 | 235 | #define MEMP_NUM_TCP_SEG 8 |
mbedalvaro | 0:df6fdd9b99f0 | 236 | /* MEMP_NUM_SYS_TIMEOUT: the number of simulateously active |
mbedalvaro | 0:df6fdd9b99f0 | 237 | timeouts. */ |
mbedalvaro | 0:df6fdd9b99f0 | 238 | #define MEMP_NUM_SYS_TIMEOUT 12 |
mbedalvaro | 0:df6fdd9b99f0 | 239 | |
mbedalvaro | 0:df6fdd9b99f0 | 240 | /* The following four are used only with the sequential API and can be |
mbedalvaro | 0:df6fdd9b99f0 | 241 | set to 0 if the application only will use the raw API. */ |
mbedalvaro | 0:df6fdd9b99f0 | 242 | /* MEMP_NUM_NETBUF: the number of struct netbufs. */ |
mbedalvaro | 0:df6fdd9b99f0 | 243 | #define MEMP_NUM_NETBUF 0 |
mbedalvaro | 0:df6fdd9b99f0 | 244 | /* MEMP_NUM_NETCONN: the number of struct netconns. */ |
mbedalvaro | 0:df6fdd9b99f0 | 245 | #define MEMP_NUM_NETCONN 0 |
mbedalvaro | 0:df6fdd9b99f0 | 246 | /* MEMP_NUM_TCPIP_MSG_*: the number of struct tcpip_msg, which is used |
mbedalvaro | 0:df6fdd9b99f0 | 247 | for sequential API communication and incoming packets. Used in |
mbedalvaro | 0:df6fdd9b99f0 | 248 | src/api/tcpip.c. */ |
mbedalvaro | 0:df6fdd9b99f0 | 249 | #define MEMP_NUM_TCPIP_MSG_API 0 |
mbedalvaro | 0:df6fdd9b99f0 | 250 | #define MEMP_NUM_TCPIP_MSG_INPKT 0 |
mbedalvaro | 0:df6fdd9b99f0 | 251 | |
mbedalvaro | 0:df6fdd9b99f0 | 252 | /* ---------- Pbuf options ---------- */ |
mbedalvaro | 0:df6fdd9b99f0 | 253 | /* PBUF_POOL_SIZE: the number of buffers in the pbuf pool. */ |
mbedalvaro | 0:df6fdd9b99f0 | 254 | #define PBUF_POOL_SIZE 8//16//100 |
mbedalvaro | 0:df6fdd9b99f0 | 255 | |
mbedalvaro | 0:df6fdd9b99f0 | 256 | /* PBUF_POOL_BUFSIZE: the size of each pbuf in the pbuf pool. */ |
mbedalvaro | 0:df6fdd9b99f0 | 257 | //#define PBUF_POOL_BUFSIZE 128 |
mbedalvaro | 0:df6fdd9b99f0 | 258 | |
mbedalvaro | 0:df6fdd9b99f0 | 259 | /* PBUF_LINK_HLEN: the number of bytes that should be allocated for a |
mbedalvaro | 0:df6fdd9b99f0 | 260 | link level header. */ |
mbedalvaro | 0:df6fdd9b99f0 | 261 | //#define PBUF_LINK_HLEN 16 |
mbedalvaro | 0:df6fdd9b99f0 | 262 | |
mbedalvaro | 0:df6fdd9b99f0 | 263 | /** SYS_LIGHTWEIGHT_PROT |
mbedalvaro | 0:df6fdd9b99f0 | 264 | * define SYS_LIGHTWEIGHT_PROT in lwipopts.h if you want inter-task protection |
mbedalvaro | 0:df6fdd9b99f0 | 265 | * for certain critical regions during buffer allocation, deallocation and memory |
mbedalvaro | 0:df6fdd9b99f0 | 266 | * allocation and deallocation. |
mbedalvaro | 0:df6fdd9b99f0 | 267 | */ |
mbedalvaro | 0:df6fdd9b99f0 | 268 | #define SYS_LIGHTWEIGHT_PROT 0 //No sys here |
mbedalvaro | 0:df6fdd9b99f0 | 269 | |
mbedalvaro | 0:df6fdd9b99f0 | 270 | /* ---------- TCP options ---------- */ |
mbedalvaro | 0:df6fdd9b99f0 | 271 | #define LWIP_TCP 1 |
mbedalvaro | 0:df6fdd9b99f0 | 272 | #define TCP_TTL 255 |
mbedalvaro | 0:df6fdd9b99f0 | 273 | |
mbedalvaro | 0:df6fdd9b99f0 | 274 | /* Controls if TCP should queue segments that arrive out of |
mbedalvaro | 0:df6fdd9b99f0 | 275 | order. Define to 0 if your device is low on memory. */ |
mbedalvaro | 0:df6fdd9b99f0 | 276 | #define TCP_QUEUE_OOSEQ 0 |
mbedalvaro | 0:df6fdd9b99f0 | 277 | |
mbedalvaro | 0:df6fdd9b99f0 | 278 | /* TCP Maximum segment size. */ |
mbedalvaro | 0:df6fdd9b99f0 | 279 | //#define TCP_MSS 1024 |
mbedalvaro | 0:df6fdd9b99f0 | 280 | #define TCP_MSS 536//0x276//536//0x276 |
mbedalvaro | 0:df6fdd9b99f0 | 281 | |
mbedalvaro | 0:df6fdd9b99f0 | 282 | /* TCP sender buffer space (bytes). */ |
mbedalvaro | 0:df6fdd9b99f0 | 283 | #define TCP_SND_BUF (3 * TCP_MSS) |
mbedalvaro | 0:df6fdd9b99f0 | 284 | |
mbedalvaro | 0:df6fdd9b99f0 | 285 | /* TCP sender buffer space (pbufs). This must be at least = 2 * |
mbedalvaro | 0:df6fdd9b99f0 | 286 | TCP_SND_BUF/TCP_MSS for things to work. */ |
mbedalvaro | 0:df6fdd9b99f0 | 287 | #define TCP_SND_QUEUELEN (2 * TCP_SND_BUF/TCP_MSS)//(4 * TCP_SND_BUF/TCP_MSS) |
mbedalvaro | 0:df6fdd9b99f0 | 288 | |
mbedalvaro | 0:df6fdd9b99f0 | 289 | /* TCP writable space (bytes). This must be less than or equal |
mbedalvaro | 0:df6fdd9b99f0 | 290 | to TCP_SND_BUF. It is the amount of space which must be |
mbedalvaro | 0:df6fdd9b99f0 | 291 | available in the tcp snd_buf for select to return writable */ |
mbedalvaro | 0:df6fdd9b99f0 | 292 | #define TCP_SNDLOWAT (TCP_SND_BUF/2) |
mbedalvaro | 0:df6fdd9b99f0 | 293 | |
mbedalvaro | 0:df6fdd9b99f0 | 294 | /* TCP receive window. */ |
mbedalvaro | 0:df6fdd9b99f0 | 295 | #define TCP_WND (3 * TCP_MSS) //8096 |
mbedalvaro | 0:df6fdd9b99f0 | 296 | |
mbedalvaro | 0:df6fdd9b99f0 | 297 | /* Maximum number of retransmissions of data segments. */ |
mbedalvaro | 0:df6fdd9b99f0 | 298 | //#define TCP_MAXRTX 12 |
mbedalvaro | 0:df6fdd9b99f0 | 299 | |
mbedalvaro | 0:df6fdd9b99f0 | 300 | /* Maximum number of retransmissions of SYN segments. */ |
mbedalvaro | 0:df6fdd9b99f0 | 301 | //#define TCP_SYNMAXRTX 4 |
mbedalvaro | 0:df6fdd9b99f0 | 302 | |
mbedalvaro | 0:df6fdd9b99f0 | 303 | #endif |
mbedalvaro | 0:df6fdd9b99f0 | 304 | |
mbedalvaro | 0:df6fdd9b99f0 | 305 | /* ---------- ARP options ---------- */ |
mbedalvaro | 0:df6fdd9b99f0 | 306 | #define LWIP_ARP (NET_ETH | NET_ZG2100) |
mbedalvaro | 0:df6fdd9b99f0 | 307 | #define ARP_TABLE_SIZE 4//10 |
mbedalvaro | 0:df6fdd9b99f0 | 308 | #define ARP_QUEUEING 0 |
mbedalvaro | 0:df6fdd9b99f0 | 309 | #define ETHARP_TRUST_IP_MAC 1 |
mbedalvaro | 0:df6fdd9b99f0 | 310 | |
mbedalvaro | 0:df6fdd9b99f0 | 311 | /* ---------- IP options ---------- */ |
mbedalvaro | 0:df6fdd9b99f0 | 312 | /* Define IP_FORWARD to 1 if you wish to have the ability to forward |
mbedalvaro | 0:df6fdd9b99f0 | 313 | IP packets across network interfaces. If you are going to run lwIP |
mbedalvaro | 0:df6fdd9b99f0 | 314 | on a device with only one network interface, define this to 0. */ |
mbedalvaro | 0:df6fdd9b99f0 | 315 | #define IP_FORWARD 0 |
mbedalvaro | 0:df6fdd9b99f0 | 316 | |
mbedalvaro | 0:df6fdd9b99f0 | 317 | |
mbedalvaro | 0:df6fdd9b99f0 | 318 | /* IP reassembly and segmentation.These are orthogonal even |
mbedalvaro | 0:df6fdd9b99f0 | 319 | * if they both deal with IP fragments */ |
mbedalvaro | 0:df6fdd9b99f0 | 320 | /* |
mbedalvaro | 0:df6fdd9b99f0 | 321 | #define IP_REASSEMBLY 1 |
mbedalvaro | 0:df6fdd9b99f0 | 322 | #define IP_REASS_MAX_PBUFS 10 |
mbedalvaro | 0:df6fdd9b99f0 | 323 | #define MEMP_NUM_REASSDATA 10 |
mbedalvaro | 0:df6fdd9b99f0 | 324 | #define IP_FRAG 1 |
mbedalvaro | 0:df6fdd9b99f0 | 325 | */ |
mbedalvaro | 0:df6fdd9b99f0 | 326 | /* ---------- ICMP options ---------- */ |
mbedalvaro | 0:df6fdd9b99f0 | 327 | #define ICMP_TTL 255 |
mbedalvaro | 0:df6fdd9b99f0 | 328 | |
mbedalvaro | 0:df6fdd9b99f0 | 329 | /* ---------- IGMP options ---------- */ |
mbedalvaro | 0:df6fdd9b99f0 | 330 | #define LWIP_IGMP (NET_ETH | NET_ZG2100) |
mbedalvaro | 0:df6fdd9b99f0 | 331 | |
mbedalvaro | 0:df6fdd9b99f0 | 332 | /* ---------- DHCP options ---------- */ |
mbedalvaro | 0:df6fdd9b99f0 | 333 | /* Define LWIP_DHCP to 1 if you want DHCP configuration of |
mbedalvaro | 0:df6fdd9b99f0 | 334 | interfaces. */ |
mbedalvaro | 0:df6fdd9b99f0 | 335 | #define LWIP_DHCP (NET_ETH | NET_ZG2100) |
mbedalvaro | 0:df6fdd9b99f0 | 336 | |
mbedalvaro | 0:df6fdd9b99f0 | 337 | /* 1 if you want to do an ARP check on the offered address |
mbedalvaro | 0:df6fdd9b99f0 | 338 | (recommended if using DHCP). */ |
mbedalvaro | 0:df6fdd9b99f0 | 339 | #define DHCP_DOES_ARP_CHECK (LWIP_DHCP) |
mbedalvaro | 0:df6fdd9b99f0 | 340 | |
mbedalvaro | 0:df6fdd9b99f0 | 341 | /* ---------- AUTOIP options ------- */ |
mbedalvaro | 0:df6fdd9b99f0 | 342 | #define LWIP_AUTOIP 0 |
mbedalvaro | 0:df6fdd9b99f0 | 343 | |
mbedalvaro | 0:df6fdd9b99f0 | 344 | /* ---------- SNMP options ---------- */ |
mbedalvaro | 0:df6fdd9b99f0 | 345 | /** @todo SNMP is experimental for now |
mbedalvaro | 0:df6fdd9b99f0 | 346 | @note UDP must be available for SNMP transport */ |
mbedalvaro | 0:df6fdd9b99f0 | 347 | #ifndef LWIP_SNMP |
mbedalvaro | 0:df6fdd9b99f0 | 348 | #define LWIP_SNMP 0 |
mbedalvaro | 0:df6fdd9b99f0 | 349 | #endif |
mbedalvaro | 0:df6fdd9b99f0 | 350 | |
mbedalvaro | 0:df6fdd9b99f0 | 351 | |
mbedalvaro | 0:df6fdd9b99f0 | 352 | #ifndef SNMP_PRIVATE_MIB |
mbedalvaro | 0:df6fdd9b99f0 | 353 | #define SNMP_PRIVATE_MIB 0 |
mbedalvaro | 0:df6fdd9b99f0 | 354 | #endif |
mbedalvaro | 0:df6fdd9b99f0 | 355 | |
mbedalvaro | 0:df6fdd9b99f0 | 356 | |
mbedalvaro | 0:df6fdd9b99f0 | 357 | /* ---------- UDP options ---------- */ |
mbedalvaro | 0:df6fdd9b99f0 | 358 | #define LWIP_UDP 1 |
mbedalvaro | 0:df6fdd9b99f0 | 359 | #define UDP_TTL 255 |
mbedalvaro | 0:df6fdd9b99f0 | 360 | |
mbedalvaro | 0:df6fdd9b99f0 | 361 | /* ---------- DNS options ---------- */ |
mbedalvaro | 0:df6fdd9b99f0 | 362 | #define LWIP_DNS 1 |
mbedalvaro | 0:df6fdd9b99f0 | 363 | |
mbedalvaro | 0:df6fdd9b99f0 | 364 | /* ---------- RAW options ---------- */ |
mbedalvaro | 0:df6fdd9b99f0 | 365 | #define LWIP_RAW 0 |
mbedalvaro | 0:df6fdd9b99f0 | 366 | #define RAW_TTL 255 |
mbedalvaro | 0:df6fdd9b99f0 | 367 | |
mbedalvaro | 0:df6fdd9b99f0 | 368 | /* ---------- Statistics options ---------- */ |
mbedalvaro | 0:df6fdd9b99f0 | 369 | /* individual STATS options can be turned off by defining them to 0 |
mbedalvaro | 0:df6fdd9b99f0 | 370 | * (e.g #define TCP_STATS 0). All of them are turned off if LWIP_STATS |
mbedalvaro | 0:df6fdd9b99f0 | 371 | * is 0 |
mbedalvaro | 0:df6fdd9b99f0 | 372 | * */ |
mbedalvaro | 0:df6fdd9b99f0 | 373 | |
mbedalvaro | 0:df6fdd9b99f0 | 374 | #define LWIP_STATS 0 |
mbedalvaro | 0:df6fdd9b99f0 | 375 | |
mbedalvaro | 0:df6fdd9b99f0 | 376 | /* ---------- PPP options ---------- */ |
mbedalvaro | 0:df6fdd9b99f0 | 377 | |
mbedalvaro | 0:df6fdd9b99f0 | 378 | #define PPP_SUPPORT NET_PPP /* Set > 0 for PPP */ |
mbedalvaro | 0:df6fdd9b99f0 | 379 | |
mbedalvaro | 0:df6fdd9b99f0 | 380 | #if PPP_SUPPORT > 0 |
mbedalvaro | 0:df6fdd9b99f0 | 381 | |
mbedalvaro | 0:df6fdd9b99f0 | 382 | #define NUM_PPP 1 /* Max PPP sessions. */ |
mbedalvaro | 0:df6fdd9b99f0 | 383 | |
mbedalvaro | 0:df6fdd9b99f0 | 384 | |
mbedalvaro | 0:df6fdd9b99f0 | 385 | /* Select modules to enable. Ideally these would be set in the makefile but |
mbedalvaro | 0:df6fdd9b99f0 | 386 | * we're limited by the command line length so you need to modify the settings |
mbedalvaro | 0:df6fdd9b99f0 | 387 | * in this file. |
mbedalvaro | 0:df6fdd9b99f0 | 388 | */ |
mbedalvaro | 0:df6fdd9b99f0 | 389 | #define PAP_SUPPORT 1 /* Set > 0 for PAP. */ |
mbedalvaro | 0:df6fdd9b99f0 | 390 | #define CHAP_SUPPORT 1 /* Set > 0 for CHAP. */ |
mbedalvaro | 0:df6fdd9b99f0 | 391 | #define MSCHAP_SUPPORT 0 /* Set > 0 for MSCHAP (NOT FUNCTIONAL!) */ |
mbedalvaro | 0:df6fdd9b99f0 | 392 | #define CBCP_SUPPORT 0 /* Set > 0 for CBCP (NOT FUNCTIONAL!) */ |
mbedalvaro | 0:df6fdd9b99f0 | 393 | #define CCP_SUPPORT 0 /* Set > 0 for CCP (NOT FUNCTIONAL!) */ |
mbedalvaro | 0:df6fdd9b99f0 | 394 | #define VJ_SUPPORT 1 /* Set > 0 for VJ header compression. */ |
mbedalvaro | 0:df6fdd9b99f0 | 395 | #define MD5_SUPPORT 1 /* Set > 0 for MD5 (see also CHAP) */ |
mbedalvaro | 0:df6fdd9b99f0 | 396 | |
mbedalvaro | 0:df6fdd9b99f0 | 397 | |
mbedalvaro | 0:df6fdd9b99f0 | 398 | /* |
mbedalvaro | 0:df6fdd9b99f0 | 399 | * Timeouts. |
mbedalvaro | 0:df6fdd9b99f0 | 400 | */ |
mbedalvaro | 0:df6fdd9b99f0 | 401 | #define FSM_DEFTIMEOUT 6 /* Timeout time in seconds */ |
mbedalvaro | 0:df6fdd9b99f0 | 402 | #define FSM_DEFMAXTERMREQS 2 /* Maximum Terminate-Request transmissions */ |
mbedalvaro | 0:df6fdd9b99f0 | 403 | #define FSM_DEFMAXCONFREQS 10 /* Maximum Configure-Request transmissions */ |
mbedalvaro | 0:df6fdd9b99f0 | 404 | #define FSM_DEFMAXNAKLOOPS 5 /* Maximum number of nak loops */ |
mbedalvaro | 0:df6fdd9b99f0 | 405 | |
mbedalvaro | 0:df6fdd9b99f0 | 406 | #define UPAP_DEFTIMEOUT 6 /* Timeout (seconds) for retransmitting req */ |
mbedalvaro | 0:df6fdd9b99f0 | 407 | #define UPAP_DEFREQTIME 30 /* Time to wait for auth-req from peer */ |
mbedalvaro | 0:df6fdd9b99f0 | 408 | |
mbedalvaro | 0:df6fdd9b99f0 | 409 | #define CHAP_DEFTIMEOUT 6 /* Timeout time in seconds */ |
mbedalvaro | 0:df6fdd9b99f0 | 410 | #define CHAP_DEFTRANSMITS 10 /* max # times to send challenge */ |
mbedalvaro | 0:df6fdd9b99f0 | 411 | |
mbedalvaro | 0:df6fdd9b99f0 | 412 | |
mbedalvaro | 0:df6fdd9b99f0 | 413 | /* Interval in seconds between keepalive echo requests, 0 to disable. */ |
mbedalvaro | 0:df6fdd9b99f0 | 414 | #if 1 |
mbedalvaro | 0:df6fdd9b99f0 | 415 | #define LCP_ECHOINTERVAL 0 |
mbedalvaro | 0:df6fdd9b99f0 | 416 | #else |
mbedalvaro | 0:df6fdd9b99f0 | 417 | |
mbedalvaro | 0:df6fdd9b99f0 | 418 | #define LCP_ECHOINTERVAL 10 |
mbedalvaro | 0:df6fdd9b99f0 | 419 | #endif |
mbedalvaro | 0:df6fdd9b99f0 | 420 | |
mbedalvaro | 0:df6fdd9b99f0 | 421 | |
mbedalvaro | 0:df6fdd9b99f0 | 422 | /* Number of unanswered echo requests before failure. */ |
mbedalvaro | 0:df6fdd9b99f0 | 423 | #define LCP_MAXECHOFAILS 3 |
mbedalvaro | 0:df6fdd9b99f0 | 424 | |
mbedalvaro | 0:df6fdd9b99f0 | 425 | /* Max Xmit idle time (in jiffies) before resend flag char. */ |
mbedalvaro | 0:df6fdd9b99f0 | 426 | #define PPP_MAXIDLEFLAG 0//Send it every time//100 |
mbedalvaro | 0:df6fdd9b99f0 | 427 | |
mbedalvaro | 0:df6fdd9b99f0 | 428 | /* |
mbedalvaro | 0:df6fdd9b99f0 | 429 | * Packet sizes |
mbedalvaro | 0:df6fdd9b99f0 | 430 | * |
mbedalvaro | 0:df6fdd9b99f0 | 431 | * Note - lcp shouldn't be allowed to negotiate stuff outside these |
mbedalvaro | 0:df6fdd9b99f0 | 432 | * limits. See lcp.h in the pppd directory. |
mbedalvaro | 0:df6fdd9b99f0 | 433 | * (XXX - these constants should simply be shared by lcp.c instead |
mbedalvaro | 0:df6fdd9b99f0 | 434 | * of living in lcp.h) |
mbedalvaro | 0:df6fdd9b99f0 | 435 | */ |
mbedalvaro | 0:df6fdd9b99f0 | 436 | #define PPP_MTU 1500 /* Default MTU (size of Info field) */ |
mbedalvaro | 0:df6fdd9b99f0 | 437 | #if 0 |
mbedalvaro | 0:df6fdd9b99f0 | 438 | #define PPP_MAXMTU 65535 - (PPP_HDRLEN + PPP_FCSLEN) |
mbedalvaro | 0:df6fdd9b99f0 | 439 | #else |
mbedalvaro | 0:df6fdd9b99f0 | 440 | |
mbedalvaro | 0:df6fdd9b99f0 | 441 | #define PPP_MAXMTU 1500 /* Largest MTU we allow */ |
mbedalvaro | 0:df6fdd9b99f0 | 442 | #endif |
mbedalvaro | 0:df6fdd9b99f0 | 443 | |
mbedalvaro | 0:df6fdd9b99f0 | 444 | #define PPP_MINMTU 64 |
mbedalvaro | 0:df6fdd9b99f0 | 445 | #define PPP_MRU 1500 /* default MRU = max length of info field */ |
mbedalvaro | 0:df6fdd9b99f0 | 446 | #define PPP_MAXMRU 1500 /* Largest MRU we allow */ |
mbedalvaro | 0:df6fdd9b99f0 | 447 | #define PPP_DEFMRU 296 /* Try for this */ |
mbedalvaro | 0:df6fdd9b99f0 | 448 | #define PPP_MINMRU 128 /* No MRUs below this */ |
mbedalvaro | 0:df6fdd9b99f0 | 449 | |
mbedalvaro | 0:df6fdd9b99f0 | 450 | |
mbedalvaro | 0:df6fdd9b99f0 | 451 | #define MAXNAMELEN 64 /* max length of hostname or name for auth */ |
mbedalvaro | 0:df6fdd9b99f0 | 452 | #define MAXSECRETLEN 64 /* max length of password or secret */ |
mbedalvaro | 0:df6fdd9b99f0 | 453 | |
mbedalvaro | 0:df6fdd9b99f0 | 454 | #endif /* PPP_SUPPORT > 0 */ |
mbedalvaro | 0:df6fdd9b99f0 | 455 | |
mbedalvaro | 0:df6fdd9b99f0 | 456 | //C++ Compat |
mbedalvaro | 0:df6fdd9b99f0 | 457 | #define try vTry |
mbedalvaro | 0:df6fdd9b99f0 | 458 | |
mbedalvaro | 0:df6fdd9b99f0 | 459 | #endif |
mbedalvaro | 0:df6fdd9b99f0 | 460 | |
mbedalvaro | 0:df6fdd9b99f0 | 461 | |
mbedalvaro | 0:df6fdd9b99f0 | 462 | #endif /* __LWIPOPTS_H__ */ |