# opt.h File Reference

`#include "lwipopts.h"`
`#include "lwip/debug.h"`

Go to the source code of this file.

## Defines
#define | API_LIB_DEBUG DBG_OFF
#define | API_MSG_DEBUG DBG_OFF
#define | ARP_QUEUEING 1
| If enabled, outgoing packets are queued during hardware address resolution.
#define | ARP_TABLE_SIZE 10
| Number of active hardware address, IP address pairs cached.
#define | CHECKSUM_CHECK_IP 1
#define | CHECKSUM_CHECK_TCP 1
#define | CHECKSUM_CHECK_UDP 1
#define | CHECKSUM_GEN_IP 1
#define | CHECKSUM_GEN_TCP 1
#define | CHECKSUM_GEN_UDP 1
#define | DBG_MIN_LEVEL DBG_LEVEL_OFF
#define | DBG_TYPES_ON 0
#define | DEFAULT_THREAD_PRIO 1
#define | DHCP_DEBUG DBG_OFF
#define | DHCP_DOES_ARP_CHECK 1
#define | ETHARP_DEBUG DBG_OFF
#define | ICMP_DEBUG DBG_OFF
#define | ICMP_STATS 1
#define | ICMP_TTL (IP_DEFAULT_TTL)
#define | INET_DEBUG DBG_OFF
#define | IP_DEBUG DBG_OFF
#define | IP_DEFAULT_TTL 255
| Global default value for Time To Live used by transport layers.
#define | IP_FORWARD 0
#define | IP_FRAG 1
| Fragment outgoing IP packets if their size exceeds MTU.
#define | IP_FRAG_MAX_MTU 1500
#define | IP_OPTIONS 1
#define | IP_REASS_BUFSIZE 5760
#define | IP_REASS_DEBUG DBG_OFF
#define | IP_REASS_MAXAGE 3
#define | IP_REASSEMBLY 1
| IP reassembly and segmentation.
#define | IP_STATS 1
#define | IPFRAG_STATS 1
#define | LINK_STATS 1
#define | LWIP_CALLBACK_API 1
#define | LWIP_COMPAT_SOCKETS 1
#define | LWIP_DHCP 0
#define | LWIP_EVENT_API 0
#define | LWIP_HAVE_LOOPIF 0
#define | LWIP_RAW 1
#define | LWIP_SNMP 0
#define | LWIP_STATS 1
#define | LWIP_STATS_DISPLAY 0
#define | LWIP_TCP 1
#define | LWIP_UDP 1
#define | MEM_ALIGNMENT 1
#define | MEM_DEBUG DBG_OFF
#define | MEM_LIBC_MALLOC 0
#define | MEM_SIZE 1600
#define | MEM_STATS 1
#define | MEMP_DEBUG DBG_OFF
#define | MEMP_NUM_API_MSG 8
#define | MEMP_NUM_NETBUF 2
#define | MEMP_NUM_NETCONN 4
#define | MEMP_NUM_PBUF 16
#define | MEMP_NUM_RAW_PCB 4
#define | MEMP_NUM_SYS_TIMEOUT 3
#define | MEMP_NUM_TCP_PCB 5
#define | MEMP_NUM_TCP_PCB_LISTEN 8
#define | MEMP_NUM_TCP_SEG 16
#define | MEMP_NUM_TCPIP_MSG 8
#define | MEMP_NUM_UDP_PCB 4
#define | MEMP_SANITY_CHECK 0
#define | MEMP_STATS 1
#define | NETIF_DEBUG DBG_OFF
#define | NO_SYS 0
#define | PBUF_DEBUG DBG_OFF
#define | PBUF_LINK_HLEN 14
#define | PBUF_POOL_BUFSIZE 128
#define | PBUF_POOL_SIZE 16
#define | PBUF_STATS 1
#define | PPP_DEBUG DBG_OFF
#define | PPP_SUPPORT 0
#define | PPP_THREAD_PRIO 1
#define | RAW_DEBUG DBG_OFF
#define | RAW_STATS 0
#define | RAW_TTL (IP_DEFAULT_TTL)
#define | SLIP_DEBUG DBG_OFF
#define | SLIPIF_THREAD_PRIO 1
#define | SNMP_CONCURRENT_REQUESTS 1
#define | SNMP_MIB_DEBUG DBG_OFF
#define | SNMP_MSG_DEBUG DBG_OFF
#define | SNMP_PRIVATE_MIB 0
#define | SNMP_TRAP_DESTINATIONS 1
#define | SOCKETS_DEBUG DBG_OFF
#define | SYS_DEBUG DBG_OFF
#define | SYS_LIGHTWEIGHT_PROT 0
#define | SYS_STATS 1
#define | TCP_CWND_DEBUG DBG_OFF
#define | TCP_DEBUG DBG_OFF
#define | TCP_FR_DEBUG DBG_OFF
#define | TCP_INPUT_DEBUG DBG_OFF
#define | TCP_MAXRTX 12
#define | TCP_MSS 128
#define | TCP_OUTPUT_DEBUG DBG_OFF
#define | TCP_QLEN_DEBUG DBG_OFF
#define | TCP_QUEUE_OOSEQ 1
#define | TCP_REXMIT_DEBUG DBG_OFF
#define | TCP_RST_DEBUG DBG_OFF
#define | TCP_RTO_DEBUG DBG_OFF
#define | TCP_SND_BUF 256
#define | TCP_SND_QUEUELEN 4 * TCP_SND_BUF/TCP_MSS
#define | TCP_SNDLOWAT TCP_SND_BUF/2
#define | TCP_STATS 1
#define | TCP_SYNMAXRTX 6
#define | TCP_TTL (IP_DEFAULT_TTL)
#define | TCP_WND 2048
#define | TCP_WND_DEBUG DBG_OFF
#define | TCPIP_DEBUG DBG_OFF
#define | TCPIP_THREAD_PRIO 1
#define | UDP_DEBUG DBG_OFF
#define | UDP_STATS 1
#define | UDP_TTL (IP_DEFAULT_TTL)

## Define Documentation

#define API_LIB_DEBUG DBG_OFF

Definition at line 604 of file opt.h.

#define API_MSG_DEBUG DBG_OFF

Definition at line 608 of file opt.h.

#define ARP_QUEUEING 1

If enabled, outgoing packets are queued during hardware address resolution.

This feature has not stabilized yet. Single-packet queueing is believed to be stable, multi-packet queueing is believed to clash with the TCP segment queueing.

As multi-packet-queueing is currently disabled, enabling this _should_ work, but we need your testing feedback on lwip-users.

Definition at line 181 of file opt.h.

#define ARP_TABLE_SIZE 10

Number of active hardware address, IP address pairs cached.

Definition at line 165 of file opt.h.

#define CHECKSUM_CHECK_IP 1

Definition at line 574 of file opt.h.

#define CHECKSUM_CHECK_TCP 1

Definition at line 582 of file opt.h.

#define CHECKSUM_CHECK_UDP 1

Definition at line 578 of file opt.h.

#define CHECKSUM_GEN_IP 1

Definition at line 562 of file opt.h.

#define CHECKSUM_GEN_TCP 1

Definition at line 570 of file opt.h.

#define CHECKSUM_GEN_UDP 1

Definition at line 566 of file opt.h.

#define DBG_MIN_LEVEL DBG_LEVEL_OFF

Definition at line 716 of file opt.h.

#define DBG_TYPES_ON 0

Definition at line 588 of file opt.h.

#define DEFAULT_THREAD_PRIO 1

Definition at line 387 of file opt.h.

#define DHCP_DEBUG DBG_OFF

Definition at line 704 of file opt.h.

#define DHCP_DOES_ARP_CHECK 1

Definition at line 268 of file opt.h.

#define ETHARP_DEBUG DBG_OFF

Definition at line 592 of file opt.h.

#define ICMP_DEBUG DBG_OFF

Definition at line 616 of file opt.h.

#define ICMP_STATS 1

Definition at line 424 of file opt.h.

#define ICMP_TTL (IP_DEFAULT_TTL)

Definition at line 246 of file opt.h.

#define INET_DEBUG DBG_OFF

Definition at line 620 of file opt.h.

#define IP_DEBUG DBG_OFF

Definition at line 624 of file opt.h.

#define IP_DEFAULT_TTL 255

Global default value for Time To Live used by transport layers.

Definition at line 240 of file opt.h.

#define IP_FORWARD 0

Definition at line 199 of file opt.h.

#define IP_FRAG 1

Fragment outgoing IP packets if their size exceeds MTU.

Definition at line 220 of file opt.h.

#define IP_FRAG_MAX_MTU 1500

Definition at line 235 of file opt.h.

#define IP_OPTIONS 1

Definition at line 205 of file opt.h.

#define IP_REASS_BUFSIZE 5760

Definition at line 230 of file opt.h.

#define IP_REASS_DEBUG DBG_OFF

Definition at line 628 of file opt.h.

#define IP_REASS_MAXAGE 3

Definition at line 225 of file opt.h.

#define IP_REASSEMBLY 1

IP reassembly and segmentation.

Even if they both deal with IP fragments, note that these are orthogonal, one dealing with incoming packets, the other with outgoing packets Reassemble incoming fragmented IP packets

Definition at line 215 of file opt.h.

#define IP_STATS 1

Definition at line 416 of file opt.h.

#define IPFRAG_STATS 1

Definition at line 420 of file opt.h.

#define LINK_STATS 1

Definition at line 412 of file opt.h.

#define LWIP_CALLBACK_API 1

Definition at line 363 of file opt.h.

#define LWIP_COMPAT_SOCKETS 1

Definition at line 370 of file opt.h.

#define LWIP_DHCP 0

Definition at line 262 of file opt.h.

#define LWIP_EVENT_API 0

Definition at line 362 of file opt.h.

#define LWIP_HAVE_LOOPIF 0

Definition at line 358 of file opt.h.

#define LWIP_RAW 1

Definition at line 252 of file opt.h.

#define LWIP_SNMP 0

Note:
  UDP must be available for SNMP transport

Definition at line 274 of file opt.h.

#define LWIP_STATS 1

Definition at line 402 of file opt.h.

#define LWIP_STATS_DISPLAY 0

Definition at line 408 of file opt.h.

#define LWIP_TCP 1

Definition at line 302 of file opt.h.

#define LWIP_UDP 1

Definition at line 293 of file opt.h.

#define MEM_ALIGNMENT 1

Definition at line 65 of file opt.h.

#define MEM_DEBUG DBG_OFF

Definition at line 636 of file opt.h.

#define MEM_LIBC_MALLOC 0

Definition at line 57 of file opt.h.

#define MEM_SIZE 1600

Definition at line 71 of file opt.h.

#define MEM_STATS 1

Definition at line 436 of file opt.h.

#define MEMP_DEBUG DBG_OFF

Definition at line 640 of file opt.h.

#define MEMP_NUM_API_MSG 8

Definition at line 130 of file opt.h.

#define MEMP_NUM_NETBUF 2

Definition at line 120 of file opt.h.

#define MEMP_NUM_NETCONN 4

Definition at line 124 of file opt.h.

#define MEMP_NUM_PBUF 16

Definition at line 82 of file opt.h.

#define MEMP_NUM_RAW_PCB 4

Definition at line 87 of file opt.h.

#define MEMP_NUM_SYS_TIMEOUT 3

Definition at line 113 of file opt.h.

#define MEMP_NUM_TCP_PCB 5

Definition at line 98 of file opt.h.

#define MEMP_NUM_TCP_PCB_LISTEN 8

Definition at line 103 of file opt.h.

#define MEMP_NUM_TCP_SEG 16

Definition at line 108 of file opt.h.

#define MEMP_NUM_TCPIP_MSG 8

Definition at line 136 of file opt.h.

#define MEMP_NUM_UDP_PCB 4

Definition at line 93 of file opt.h.

#define MEMP_SANITY_CHECK 0

Definition at line 75 of file opt.h.

#define MEMP_STATS 1

Definition at line 440 of file opt.h.

#define NETIF_DEBUG DBG_OFF

Definition at line 596 of file opt.h.

#define NO_SYS 0

Definition at line 53 of file opt.h.

#define PBUF_DEBUG DBG_OFF

Definition at line 600 of file opt.h.

#define PBUF_LINK_HLEN 14

Definition at line 156 of file opt.h.

#define PBUF_POOL_BUFSIZE 128

Definition at line 149 of file opt.h.

#define PBUF_POOL_SIZE 16

Definition at line 143 of file opt.h.

#define PBUF_STATS 1

Definition at line 444 of file opt.h.

#define PPP_DEBUG DBG_OFF

Definition at line 696 of file opt.h.

#define PPP_SUPPORT 0

Definition at line 475 of file opt.h.

#define PPP_THREAD_PRIO 1

Definition at line 383 of file opt.h.

#define RAW_DEBUG DBG_OFF

Definition at line 632 of file opt.h.

#define RAW_STATS 0

Definition at line 452 of file opt.h.

#define RAW_TTL (IP_DEFAULT_TTL)

Definition at line 256 of file opt.h.

#define SLIP_DEBUG DBG_OFF

Definition at line 700 of file opt.h.

#define SLIPIF_THREAD_PRIO 1

Definition at line 379 of file opt.h.

#define SNMP_CONCURRENT_REQUESTS 1

Note:
  At least one request buffer is required.

Definition at line 279 of file opt.h.

#define SNMP_MIB_DEBUG DBG_OFF

Definition at line 712 of file opt.h.

#define SNMP_MSG_DEBUG DBG_OFF

Definition at line 708 of file opt.h.

#define SNMP_PRIVATE_MIB 0

Definition at line 288 of file opt.h.

#define SNMP_TRAP_DESTINATIONS 1

Note:
  At least one trap destination is required

Definition at line 284 of file opt.h.

#define SOCKETS_DEBUG DBG_OFF

Definition at line 612 of file opt.h.

#define SYS_DEBUG DBG_OFF

Definition at line 644 of file opt.h.

#define SYS_LIGHTWEIGHT_PROT 0

Definition at line 49 of file opt.h.

#define SYS_STATS 1

Definition at line 448 of file opt.h.

#define TCP_CWND_DEBUG DBG_OFF

Definition at line 668 of file opt.h.

#define TCP_DEBUG DBG_OFF

Definition at line 648 of file opt.h.

#define TCP_FR_DEBUG DBG_OFF

Definition at line 656 of file opt.h.

#define TCP_INPUT_DEBUG DBG_OFF

Definition at line 652 of file opt.h.

#define TCP_MAXRTX 12

Definition at line 314 of file opt.h.

#define TCP_MSS 128

Definition at line 330 of file opt.h.

#define TCP_OUTPUT_DEBUG DBG_OFF

Definition at line 676 of file opt.h.

#define TCP_QLEN_DEBUG DBG_OFF

Definition at line 684 of file opt.h.

#define TCP_QUEUE_OOSEQ 1

Definition at line 325 of file opt.h.

#define TCP_REXMIT_DEBUG DBG_OFF

Definition at line 664 of file opt.h.

#define TCP_RST_DEBUG DBG_OFF

Definition at line 680 of file opt.h.

#define TCP_RTO_DEBUG DBG_OFF

Definition at line 660 of file opt.h.

#define TCP_SND_BUF 256

Definition at line 335 of file opt.h.

#define TCP_SND_QUEUELEN 4 * TCP_SND_BUF/TCP_MSS

Definition at line 341 of file opt.h.

#define TCP_SNDLOWAT TCP_SND_BUF/2

Definition at line 353 of file opt.h.

#define TCP_STATS 1

Definition at line 432 of file opt.h.

#define TCP_SYNMAXRTX 6

Definition at line 318 of file opt.h.

#define TCP_TTL (IP_DEFAULT_TTL)

Definition at line 306 of file opt.h.

#define TCP_WND 2048

Definition at line 310 of file opt.h.

#define TCP_WND_DEBUG DBG_OFF

Definition at line 672 of file opt.h.

#define TCPIP_DEBUG DBG_OFF

Definition at line 692 of file opt.h.

#define TCPIP_THREAD_PRIO 1

Definition at line 375 of file opt.h.

#define UDP_DEBUG DBG_OFF

Definition at line 688 of file opt.h.

#define UDP_STATS 1

Definition at line 428 of file opt.h.

#define UDP_TTL (IP_DEFAULT_TTL)

Definition at line 297 of file opt.h.