Porting mros2 as an Mbed library.

Dependents:   mbed-os-example-mros2 example-mbed-mros2-sub-pose example-mbed-mros2-pub-twist example-mbed-mros2-mturtle-teleop

Committer:
smoritaemb
Date:
Thu Dec 30 21:06:29 2021 +0900
Revision:
0:580aba13d1a1
Updated to catch up to mros2 v2.3

Who changed what in which revision?

UserRevisionLine numberNew contents of line
smoritaemb 0:580aba13d1a1 1 /*
smoritaemb 0:580aba13d1a1 2 * Copyright (c) 2001-2003 Swedish Institute of Computer Science.
smoritaemb 0:580aba13d1a1 3 * All rights reserved.
smoritaemb 0:580aba13d1a1 4 *
smoritaemb 0:580aba13d1a1 5 * Redistribution and use in source and binary forms, with or without modification,
smoritaemb 0:580aba13d1a1 6 * are permitted provided that the following conditions are met:
smoritaemb 0:580aba13d1a1 7 *
smoritaemb 0:580aba13d1a1 8 * 1. Redistributions of source code must retain the above copyright notice,
smoritaemb 0:580aba13d1a1 9 * this list of conditions and the following disclaimer.
smoritaemb 0:580aba13d1a1 10 * 2. Redistributions in binary form must reproduce the above copyright notice,
smoritaemb 0:580aba13d1a1 11 * this list of conditions and the following disclaimer in the documentation
smoritaemb 0:580aba13d1a1 12 * and/or other materials provided with the distribution.
smoritaemb 0:580aba13d1a1 13 * 3. The name of the author may not be used to endorse or promote products
smoritaemb 0:580aba13d1a1 14 * derived from this software without specific prior written permission.
smoritaemb 0:580aba13d1a1 15 *
smoritaemb 0:580aba13d1a1 16 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
smoritaemb 0:580aba13d1a1 17 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
smoritaemb 0:580aba13d1a1 18 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
smoritaemb 0:580aba13d1a1 19 * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
smoritaemb 0:580aba13d1a1 20 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
smoritaemb 0:580aba13d1a1 21 * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
smoritaemb 0:580aba13d1a1 22 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
smoritaemb 0:580aba13d1a1 23 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
smoritaemb 0:580aba13d1a1 24 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
smoritaemb 0:580aba13d1a1 25 * OF SUCH DAMAGE.
smoritaemb 0:580aba13d1a1 26 *
smoritaemb 0:580aba13d1a1 27 * This file is part of the lwIP TCP/IP stack.
smoritaemb 0:580aba13d1a1 28 *
smoritaemb 0:580aba13d1a1 29 * Author: Adam Dunkels <adam@sics.se>
smoritaemb 0:580aba13d1a1 30 *
smoritaemb 0:580aba13d1a1 31 */
smoritaemb 0:580aba13d1a1 32 #ifndef LWIP_LWIPOPTS_H
smoritaemb 0:580aba13d1a1 33 #define LWIP_LWIPOPTS_H
smoritaemb 0:580aba13d1a1 34
smoritaemb 0:580aba13d1a1 35 #ifdef LWIP_OPTTEST_FILE
smoritaemb 0:580aba13d1a1 36 #include "lwipopts_test.h"
smoritaemb 0:580aba13d1a1 37 #else /* LWIP_OPTTEST_FILE */
smoritaemb 0:580aba13d1a1 38
smoritaemb 0:580aba13d1a1 39 #define LWIP_IPV4 1
smoritaemb 0:580aba13d1a1 40 #define LWIP_IPV6 0
smoritaemb 0:580aba13d1a1 41
smoritaemb 0:580aba13d1a1 42 #define NO_SYS 0
smoritaemb 0:580aba13d1a1 43 #define LWIP_SOCKET (NO_SYS==0)
smoritaemb 0:580aba13d1a1 44 #define LWIP_NETCONN (NO_SYS==0)
smoritaemb 0:580aba13d1a1 45 #define LWIP_NETIF_API (NO_SYS==0)
smoritaemb 0:580aba13d1a1 46
smoritaemb 0:580aba13d1a1 47 #define LWIP_IGMP LWIP_IPV4
smoritaemb 0:580aba13d1a1 48 #define LWIP_ICMP LWIP_IPV4
smoritaemb 0:580aba13d1a1 49
smoritaemb 0:580aba13d1a1 50 #define LWIP_SNMP LWIP_UDP
smoritaemb 0:580aba13d1a1 51 #define MIB2_STATS LWIP_SNMP
smoritaemb 0:580aba13d1a1 52 #ifdef LWIP_HAVE_MBEDTLS
smoritaemb 0:580aba13d1a1 53 #define LWIP_SNMP_V3 (LWIP_SNMP)
smoritaemb 0:580aba13d1a1 54 #endif
smoritaemb 0:580aba13d1a1 55
smoritaemb 0:580aba13d1a1 56 #define LWIP_DNS LWIP_UDP
smoritaemb 0:580aba13d1a1 57 #define LWIP_MDNS_RESPONDER LWIP_UDP
smoritaemb 0:580aba13d1a1 58
smoritaemb 0:580aba13d1a1 59 #define LWIP_NUM_NETIF_CLIENT_DATA (LWIP_MDNS_RESPONDER)
smoritaemb 0:580aba13d1a1 60
smoritaemb 0:580aba13d1a1 61 #define LWIP_HAVE_LOOPIF 1
smoritaemb 0:580aba13d1a1 62 #define LWIP_NETIF_LOOPBACK 1
smoritaemb 0:580aba13d1a1 63 #define LWIP_LOOPBACK_MAX_PBUFS 10
smoritaemb 0:580aba13d1a1 64
smoritaemb 0:580aba13d1a1 65 #define TCP_LISTEN_BACKLOG 1
smoritaemb 0:580aba13d1a1 66
smoritaemb 0:580aba13d1a1 67 #define LWIP_COMPAT_SOCKETS 1
smoritaemb 0:580aba13d1a1 68 #define LWIP_SO_RCVTIMEO 1
smoritaemb 0:580aba13d1a1 69 #define LWIP_SO_RCVBUF 1
smoritaemb 0:580aba13d1a1 70
smoritaemb 0:580aba13d1a1 71 #define LWIP_TCPIP_CORE_LOCKING 1
smoritaemb 0:580aba13d1a1 72
smoritaemb 0:580aba13d1a1 73 #define LWIP_NETIF_LINK_CALLBACK 1
smoritaemb 0:580aba13d1a1 74 #define LWIP_NETIF_STATUS_CALLBACK 1
smoritaemb 0:580aba13d1a1 75 #define LWIP_NETIF_EXT_STATUS_CALLBACK 1
smoritaemb 0:580aba13d1a1 76
smoritaemb 0:580aba13d1a1 77 //#define LWIP_DEBUG
smoritaemb 0:580aba13d1a1 78 #ifdef LWIP_DEBUG
smoritaemb 0:580aba13d1a1 79
smoritaemb 0:580aba13d1a1 80 #define LWIP_DBG_MIN_LEVEL 0
smoritaemb 0:580aba13d1a1 81 #define PPP_DEBUG LWIP_DBG_OFF
smoritaemb 0:580aba13d1a1 82 #define MEM_DEBUG LWIP_DBG_OFF
smoritaemb 0:580aba13d1a1 83 #define MEMP_DEBUG LWIP_DBG_OFF
smoritaemb 0:580aba13d1a1 84 #define PBUF_DEBUG LWIP_DBG_OFF
smoritaemb 0:580aba13d1a1 85 #define API_LIB_DEBUG LWIP_DBG_OFF
smoritaemb 0:580aba13d1a1 86 #define API_MSG_DEBUG LWIP_DBG_OFF
smoritaemb 0:580aba13d1a1 87 #define TCPIP_DEBUG LWIP_DBG_OFF
smoritaemb 0:580aba13d1a1 88 #define NETIF_DEBUG LWIP_DBG_OFF
smoritaemb 0:580aba13d1a1 89 #define SOCKETS_DEBUG LWIP_DBG_OFF
smoritaemb 0:580aba13d1a1 90 #define DNS_DEBUG LWIP_DBG_OFF
smoritaemb 0:580aba13d1a1 91 #define AUTOIP_DEBUG LWIP_DBG_OFF
smoritaemb 0:580aba13d1a1 92 #define DHCP_DEBUG LWIP_DBG_OFF
smoritaemb 0:580aba13d1a1 93 #define IP_DEBUG LWIP_DBG_OFF
smoritaemb 0:580aba13d1a1 94 #define IP_REASS_DEBUG LWIP_DBG_OFF
smoritaemb 0:580aba13d1a1 95 #define ICMP_DEBUG LWIP_DBG_OFF
smoritaemb 0:580aba13d1a1 96 #define IGMP_DEBUG LWIP_DBG_OFF
smoritaemb 0:580aba13d1a1 97 #define UDP_DEBUG LWIP_DBG_OFF
smoritaemb 0:580aba13d1a1 98 #define TCP_DEBUG LWIP_DBG_OFF
smoritaemb 0:580aba13d1a1 99 #define TCP_INPUT_DEBUG LWIP_DBG_OFF
smoritaemb 0:580aba13d1a1 100 #define TCP_OUTPUT_DEBUG LWIP_DBG_OFF
smoritaemb 0:580aba13d1a1 101 #define TCP_RTO_DEBUG LWIP_DBG_OFF
smoritaemb 0:580aba13d1a1 102 #define TCP_CWND_DEBUG LWIP_DBG_OFF
smoritaemb 0:580aba13d1a1 103 #define TCP_WND_DEBUG LWIP_DBG_OFF
smoritaemb 0:580aba13d1a1 104 #define TCP_FR_DEBUG LWIP_DBG_OFF
smoritaemb 0:580aba13d1a1 105 #define TCP_QLEN_DEBUG LWIP_DBG_OFF
smoritaemb 0:580aba13d1a1 106 #define TCP_RST_DEBUG LWIP_DBG_OFF
smoritaemb 0:580aba13d1a1 107 #endif
smoritaemb 0:580aba13d1a1 108
smoritaemb 0:580aba13d1a1 109 #define LWIP_DBG_TYPES_ON (LWIP_DBG_ON|LWIP_DBG_TRACE|LWIP_DBG_STATE|LWIP_DBG_FRESH|LWIP_DBG_HALT)
smoritaemb 0:580aba13d1a1 110
smoritaemb 0:580aba13d1a1 111
smoritaemb 0:580aba13d1a1 112 /* ---------- Memory options ---------- */
smoritaemb 0:580aba13d1a1 113 /* MEM_ALIGNMENT: should be set to the alignment of the CPU for which
smoritaemb 0:580aba13d1a1 114 lwIP is compiled. 4 byte alignment -> define MEM_ALIGNMENT to 4, 2
smoritaemb 0:580aba13d1a1 115 byte alignment -> define MEM_ALIGNMENT to 2. */
smoritaemb 0:580aba13d1a1 116 /* MSVC port: intel processors don't need 4-byte alignment,
smoritaemb 0:580aba13d1a1 117 but are faster that way! */
smoritaemb 0:580aba13d1a1 118 #define MEM_ALIGNMENT 4U
smoritaemb 0:580aba13d1a1 119
smoritaemb 0:580aba13d1a1 120 /* MEM_SIZE: the size of the heap memory. If the application will send
smoritaemb 0:580aba13d1a1 121 a lot of data that needs to be copied, this should be set high. */
smoritaemb 0:580aba13d1a1 122 #define MEM_SIZE 10240
smoritaemb 0:580aba13d1a1 123
smoritaemb 0:580aba13d1a1 124 /* MEMP_NUM_PBUF: the number of memp struct pbufs. If the application
smoritaemb 0:580aba13d1a1 125 sends a lot of data out of ROM (or other static memory), this
smoritaemb 0:580aba13d1a1 126 should be set high. */
smoritaemb 0:580aba13d1a1 127 #define MEMP_NUM_PBUF 16
smoritaemb 0:580aba13d1a1 128 /* MEMP_NUM_RAW_PCB: the number of UDP protocol control blocks. One
smoritaemb 0:580aba13d1a1 129 per active RAW "connection". */
smoritaemb 0:580aba13d1a1 130 #define MEMP_NUM_RAW_PCB 3
smoritaemb 0:580aba13d1a1 131 /* MEMP_NUM_UDP_PCB: the number of UDP protocol control blocks. One
smoritaemb 0:580aba13d1a1 132 per active UDP "connection". */
smoritaemb 0:580aba13d1a1 133 #define MEMP_NUM_UDP_PCB 40
smoritaemb 0:580aba13d1a1 134 /* MEMP_NUM_TCP_PCB: the number of simulatenously active TCP
smoritaemb 0:580aba13d1a1 135 connections. */
smoritaemb 0:580aba13d1a1 136 #define MEMP_NUM_TCP_PCB 5
smoritaemb 0:580aba13d1a1 137 /* MEMP_NUM_TCP_PCB_LISTEN: the number of listening TCP
smoritaemb 0:580aba13d1a1 138 connections. */
smoritaemb 0:580aba13d1a1 139 #define MEMP_NUM_TCP_PCB_LISTEN 8
smoritaemb 0:580aba13d1a1 140 /* MEMP_NUM_TCP_SEG: the number of simultaneously queued TCP
smoritaemb 0:580aba13d1a1 141 segments. */
smoritaemb 0:580aba13d1a1 142 #define MEMP_NUM_TCP_SEG 16
smoritaemb 0:580aba13d1a1 143 /* MEMP_NUM_SYS_TIMEOUT: the number of simulateously active
smoritaemb 0:580aba13d1a1 144 timeouts. */
smoritaemb 0:580aba13d1a1 145 #define MEMP_NUM_SYS_TIMEOUT 17
smoritaemb 0:580aba13d1a1 146
smoritaemb 0:580aba13d1a1 147 /* The following four are used only with the sequential API and can be
smoritaemb 0:580aba13d1a1 148 set to 0 if the application only will use the raw API. */
smoritaemb 0:580aba13d1a1 149 /* MEMP_NUM_NETBUF: the number of struct netbufs. */
smoritaemb 0:580aba13d1a1 150 #define MEMP_NUM_NETBUF 2
smoritaemb 0:580aba13d1a1 151 /* MEMP_NUM_NETCONN: the number of struct netconns. */
smoritaemb 0:580aba13d1a1 152 #define MEMP_NUM_NETCONN 10
smoritaemb 0:580aba13d1a1 153 /* MEMP_NUM_TCPIP_MSG_*: the number of struct tcpip_msg, which is used
smoritaemb 0:580aba13d1a1 154 for sequential API communication and incoming packets. Used in
smoritaemb 0:580aba13d1a1 155 src/api/tcpip.c. */
smoritaemb 0:580aba13d1a1 156 #define MEMP_NUM_TCPIP_MSG_API 16
smoritaemb 0:580aba13d1a1 157 #define MEMP_NUM_TCPIP_MSG_INPKT 16
smoritaemb 0:580aba13d1a1 158
smoritaemb 0:580aba13d1a1 159
smoritaemb 0:580aba13d1a1 160 /* ---------- Pbuf options ---------- */
smoritaemb 0:580aba13d1a1 161 /* PBUF_POOL_SIZE: the number of buffers in the pbuf pool. */
smoritaemb 0:580aba13d1a1 162 #define PBUF_POOL_SIZE 120
smoritaemb 0:580aba13d1a1 163
smoritaemb 0:580aba13d1a1 164 /* PBUF_POOL_BUFSIZE: the size of each pbuf in the pbuf pool. */
smoritaemb 0:580aba13d1a1 165 #define PBUF_POOL_BUFSIZE 512
smoritaemb 0:580aba13d1a1 166
smoritaemb 0:580aba13d1a1 167 /** SYS_LIGHTWEIGHT_PROT
smoritaemb 0:580aba13d1a1 168 * define SYS_LIGHTWEIGHT_PROT in lwipopts.h if you want inter-task protection
smoritaemb 0:580aba13d1a1 169 * for certain critical regions during buffer allocation, deallocation and memory
smoritaemb 0:580aba13d1a1 170 * allocation and deallocation.
smoritaemb 0:580aba13d1a1 171 */
smoritaemb 0:580aba13d1a1 172 #define SYS_LIGHTWEIGHT_PROT (NO_SYS==0)
smoritaemb 0:580aba13d1a1 173
smoritaemb 0:580aba13d1a1 174
smoritaemb 0:580aba13d1a1 175 /* ---------- TCP options ---------- */
smoritaemb 0:580aba13d1a1 176 #define LWIP_TCP 0
smoritaemb 0:580aba13d1a1 177 #define TCP_TTL 255
smoritaemb 0:580aba13d1a1 178
smoritaemb 0:580aba13d1a1 179 #define LWIP_ALTCP (LWIP_TCP)
smoritaemb 0:580aba13d1a1 180 #ifdef LWIP_HAVE_MBEDTLS
smoritaemb 0:580aba13d1a1 181 #define LWIP_ALTCP_TLS (LWIP_TCP)
smoritaemb 0:580aba13d1a1 182 #define LWIP_ALTCP_TLS_MBEDTLS (LWIP_TCP)
smoritaemb 0:580aba13d1a1 183 #endif
smoritaemb 0:580aba13d1a1 184
smoritaemb 0:580aba13d1a1 185
smoritaemb 0:580aba13d1a1 186 /* Controls if TCP should queue segments that arrive out of
smoritaemb 0:580aba13d1a1 187 order. Define to 0 if your device is low on memory. */
smoritaemb 0:580aba13d1a1 188 #define TCP_QUEUE_OOSEQ 1
smoritaemb 0:580aba13d1a1 189
smoritaemb 0:580aba13d1a1 190 /* TCP Maximum segment size. */
smoritaemb 0:580aba13d1a1 191 #define TCP_MSS 1024
smoritaemb 0:580aba13d1a1 192
smoritaemb 0:580aba13d1a1 193 /* TCP sender buffer space (bytes). */
smoritaemb 0:580aba13d1a1 194 #define TCP_SND_BUF 2048
smoritaemb 0:580aba13d1a1 195
smoritaemb 0:580aba13d1a1 196 /* TCP sender buffer space (pbufs). This must be at least = 2 *
smoritaemb 0:580aba13d1a1 197 TCP_SND_BUF/TCP_MSS for things to work. */
smoritaemb 0:580aba13d1a1 198 #define TCP_SND_QUEUELEN (4 * TCP_SND_BUF/TCP_MSS)
smoritaemb 0:580aba13d1a1 199
smoritaemb 0:580aba13d1a1 200 /* TCP writable space (bytes). This must be less than or equal
smoritaemb 0:580aba13d1a1 201 to TCP_SND_BUF. It is the amount of space which must be
smoritaemb 0:580aba13d1a1 202 available in the tcp snd_buf for select to return writable */
smoritaemb 0:580aba13d1a1 203 #define TCP_SNDLOWAT (TCP_SND_BUF/2)
smoritaemb 0:580aba13d1a1 204
smoritaemb 0:580aba13d1a1 205 /* TCP receive window. */
smoritaemb 0:580aba13d1a1 206 #define TCP_WND (20 * 1024)
smoritaemb 0:580aba13d1a1 207
smoritaemb 0:580aba13d1a1 208 /* Maximum number of retransmissions of data segments. */
smoritaemb 0:580aba13d1a1 209 #define TCP_MAXRTX 12
smoritaemb 0:580aba13d1a1 210
smoritaemb 0:580aba13d1a1 211 /* Maximum number of retransmissions of SYN segments. */
smoritaemb 0:580aba13d1a1 212 #define TCP_SYNMAXRTX 4
smoritaemb 0:580aba13d1a1 213
smoritaemb 0:580aba13d1a1 214
smoritaemb 0:580aba13d1a1 215 /* ---------- ARP options ---------- */
smoritaemb 0:580aba13d1a1 216 #define LWIP_ARP 1
smoritaemb 0:580aba13d1a1 217 #define ARP_TABLE_SIZE 10
smoritaemb 0:580aba13d1a1 218 #define ARP_QUEUEING 1
smoritaemb 0:580aba13d1a1 219
smoritaemb 0:580aba13d1a1 220
smoritaemb 0:580aba13d1a1 221 /* ---------- IP options ---------- */
smoritaemb 0:580aba13d1a1 222 /* Define IP_FORWARD to 1 if you wish to have the ability to forward
smoritaemb 0:580aba13d1a1 223 IP packets across network interfaces. If you are going to run lwIP
smoritaemb 0:580aba13d1a1 224 on a device with only one network interface, define this to 0. */
smoritaemb 0:580aba13d1a1 225 #define IP_FORWARD 1
smoritaemb 0:580aba13d1a1 226
smoritaemb 0:580aba13d1a1 227 /* IP reassembly and segmentation.These are orthogonal even
smoritaemb 0:580aba13d1a1 228 * if they both deal with IP fragments */
smoritaemb 0:580aba13d1a1 229 #define IP_REASSEMBLY 1
smoritaemb 0:580aba13d1a1 230 #define IP_REASS_MAX_PBUFS (10 * ((1500 + PBUF_POOL_BUFSIZE - 1) / PBUF_POOL_BUFSIZE))
smoritaemb 0:580aba13d1a1 231 #define MEMP_NUM_REASSDATA IP_REASS_MAX_PBUFS
smoritaemb 0:580aba13d1a1 232 #define IP_FRAG 1
smoritaemb 0:580aba13d1a1 233 #define IPV6_FRAG_COPYHEADER 1
smoritaemb 0:580aba13d1a1 234
smoritaemb 0:580aba13d1a1 235 /* ---------- ICMP options ---------- */
smoritaemb 0:580aba13d1a1 236 #define ICMP_TTL 255
smoritaemb 0:580aba13d1a1 237
smoritaemb 0:580aba13d1a1 238
smoritaemb 0:580aba13d1a1 239 /* ---------- DHCP options ---------- */
smoritaemb 0:580aba13d1a1 240 /* Define LWIP_DHCP to 1 if you want DHCP configuration of
smoritaemb 0:580aba13d1a1 241 interfaces. */
smoritaemb 0:580aba13d1a1 242 #define LWIP_DHCP 0 /*LWIP_UDP*/
smoritaemb 0:580aba13d1a1 243
smoritaemb 0:580aba13d1a1 244 /* 1 if you want to do an ARP check on the offered address
smoritaemb 0:580aba13d1a1 245 (recommended). */
smoritaemb 0:580aba13d1a1 246 #define DHCP_DOES_ARP_CHECK (LWIP_DHCP)
smoritaemb 0:580aba13d1a1 247
smoritaemb 0:580aba13d1a1 248
smoritaemb 0:580aba13d1a1 249 /* ---------- AUTOIP options ------- */
smoritaemb 0:580aba13d1a1 250 #define LWIP_AUTOIP (LWIP_DHCP)
smoritaemb 0:580aba13d1a1 251 #define LWIP_DHCP_AUTOIP_COOP (LWIP_DHCP && LWIP_AUTOIP)
smoritaemb 0:580aba13d1a1 252
smoritaemb 0:580aba13d1a1 253
smoritaemb 0:580aba13d1a1 254 /* ---------- UDP options ---------- */
smoritaemb 0:580aba13d1a1 255 #define LWIP_UDP 1
smoritaemb 0:580aba13d1a1 256 #define LWIP_UDPLITE LWIP_UDP
smoritaemb 0:580aba13d1a1 257 #define UDP_TTL 255
smoritaemb 0:580aba13d1a1 258
smoritaemb 0:580aba13d1a1 259
smoritaemb 0:580aba13d1a1 260 /* ---------- RAW options ---------- */
smoritaemb 0:580aba13d1a1 261 #define LWIP_RAW 1
smoritaemb 0:580aba13d1a1 262
smoritaemb 0:580aba13d1a1 263
smoritaemb 0:580aba13d1a1 264 /* ---------- Statistics options ---------- */
smoritaemb 0:580aba13d1a1 265
smoritaemb 0:580aba13d1a1 266 #define LWIP_STATS 1
smoritaemb 0:580aba13d1a1 267 #define LWIP_STATS_DISPLAY 1
smoritaemb 0:580aba13d1a1 268
smoritaemb 0:580aba13d1a1 269 #if LWIP_STATS
smoritaemb 0:580aba13d1a1 270 #define LINK_STATS 1
smoritaemb 0:580aba13d1a1 271 #define IP_STATS 1
smoritaemb 0:580aba13d1a1 272 #define ICMP_STATS 1
smoritaemb 0:580aba13d1a1 273 #define IGMP_STATS 1
smoritaemb 0:580aba13d1a1 274 #define IPFRAG_STATS 1
smoritaemb 0:580aba13d1a1 275 #define UDP_STATS 1
smoritaemb 0:580aba13d1a1 276 #define TCP_STATS 1
smoritaemb 0:580aba13d1a1 277 #define MEM_STATS 1
smoritaemb 0:580aba13d1a1 278 #define MEMP_STATS 1
smoritaemb 0:580aba13d1a1 279 #define PBUF_STATS 1
smoritaemb 0:580aba13d1a1 280 #define SYS_STATS 1
smoritaemb 0:580aba13d1a1 281 #endif /* LWIP_STATS */
smoritaemb 0:580aba13d1a1 282
smoritaemb 0:580aba13d1a1 283 /* ---------- NETBIOS options ---------- */
smoritaemb 0:580aba13d1a1 284 #define LWIP_NETBIOS_RESPOND_NAME_QUERY 1
smoritaemb 0:580aba13d1a1 285
smoritaemb 0:580aba13d1a1 286 /* ---------- PPP options ---------- */
smoritaemb 0:580aba13d1a1 287
smoritaemb 0:580aba13d1a1 288 #define PPP_SUPPORT 0 /* Set > 0 for PPP */
smoritaemb 0:580aba13d1a1 289
smoritaemb 0:580aba13d1a1 290 #if PPP_SUPPORT
smoritaemb 0:580aba13d1a1 291
smoritaemb 0:580aba13d1a1 292 #define NUM_PPP 1 /* Max PPP sessions. */
smoritaemb 0:580aba13d1a1 293
smoritaemb 0:580aba13d1a1 294
smoritaemb 0:580aba13d1a1 295 /* Select modules to enable. Ideally these would be set in the makefile but
smoritaemb 0:580aba13d1a1 296 * we're limited by the command line length so you need to modify the settings
smoritaemb 0:580aba13d1a1 297 * in this file.
smoritaemb 0:580aba13d1a1 298 */
smoritaemb 0:580aba13d1a1 299 #define PPPOE_SUPPORT 1
smoritaemb 0:580aba13d1a1 300 #define PPPOS_SUPPORT 1
smoritaemb 0:580aba13d1a1 301
smoritaemb 0:580aba13d1a1 302 #define PAP_SUPPORT 1 /* Set > 0 for PAP. */
smoritaemb 0:580aba13d1a1 303 #define CHAP_SUPPORT 1 /* Set > 0 for CHAP. */
smoritaemb 0:580aba13d1a1 304 #define MSCHAP_SUPPORT 0 /* Set > 0 for MSCHAP */
smoritaemb 0:580aba13d1a1 305 #define CBCP_SUPPORT 0 /* Set > 0 for CBCP (NOT FUNCTIONAL!) */
smoritaemb 0:580aba13d1a1 306 #define CCP_SUPPORT 0 /* Set > 0 for CCP */
smoritaemb 0:580aba13d1a1 307 #define VJ_SUPPORT 1 /* Set > 0 for VJ header compression. */
smoritaemb 0:580aba13d1a1 308 #define MD5_SUPPORT 1 /* Set > 0 for MD5 (see also CHAP) */
smoritaemb 0:580aba13d1a1 309
smoritaemb 0:580aba13d1a1 310 #endif /* PPP_SUPPORT */
smoritaemb 0:580aba13d1a1 311
smoritaemb 0:580aba13d1a1 312 #endif /* LWIP_OPTTEST_FILE */
smoritaemb 0:580aba13d1a1 313
smoritaemb 0:580aba13d1a1 314 /* The following defines must be done even in OPTTEST mode: */
smoritaemb 0:580aba13d1a1 315 #ifdef __cplusplus
smoritaemb 0:580aba13d1a1 316 extern "C"{
smoritaemb 0:580aba13d1a1 317 #endif
smoritaemb 0:580aba13d1a1 318
smoritaemb 0:580aba13d1a1 319 #if !defined(NO_SYS) || !NO_SYS /* default is 0 */
smoritaemb 0:580aba13d1a1 320 void sys_check_core_locking(void);
smoritaemb 0:580aba13d1a1 321 #define LWIP_ASSERT_CORE_LOCKED() sys_check_core_locking()
smoritaemb 0:580aba13d1a1 322 void sys_mark_tcpip_thread(void);
smoritaemb 0:580aba13d1a1 323 #define LWIP_MARK_TCPIP_THREAD() sys_mark_tcpip_thread()
smoritaemb 0:580aba13d1a1 324
smoritaemb 0:580aba13d1a1 325 #if !defined(LWIP_TCPIP_CORE_LOCKING) || LWIP_TCPIP_CORE_LOCKING /* default is 1 */
smoritaemb 0:580aba13d1a1 326 void sys_lock_tcpip_core(void);
smoritaemb 0:580aba13d1a1 327 #define LOCK_TCPIP_CORE() sys_lock_tcpip_core()
smoritaemb 0:580aba13d1a1 328 void sys_unlock_tcpip_core(void);
smoritaemb 0:580aba13d1a1 329 #define UNLOCK_TCPIP_CORE() sys_unlock_tcpip_core()
smoritaemb 0:580aba13d1a1 330 #endif
smoritaemb 0:580aba13d1a1 331 #endif
smoritaemb 0:580aba13d1a1 332
smoritaemb 0:580aba13d1a1 333 #ifdef __cplusplus
smoritaemb 0:580aba13d1a1 334 }
smoritaemb 0:580aba13d1a1 335 #endif
smoritaemb 0:580aba13d1a1 336
smoritaemb 0:580aba13d1a1 337 #endif /* LWIP_LWIPOPTS_H */