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