Microchip® Advanced Software Framework

lwipopts.h File Reference
#include "conf_lwip_threads.h"
#include "lwip/debug.h"
#include "tracedump.h"
#include <sys/time.h>

Macros

#define API_LIB_DEBUG   LWIP_DBG_OFF
 
#define API_MSG_DEBUG   LWIP_DBG_ON
 
#define ARP_TABLE_SIZE   5
 Number of active hardware address, IP address pairs cached. More...
 
#define DBG_MIN_LEVEL   LWIP_DBG_LEVEL_SEVERE
 
#define DBG_TYPES_ON   0xff
 
#define DEFAULT_ACCEPTMBOX_SIZE   6
 DEFAULT_ACCEPTMBOX_SIZE: The mailbox size for the incoming connections. More...
 
#define DEFAULT_RAW_RECVMBOX_SIZE   6
 DEFAULT_RAW_RECVMBOX_SIZE: The mailbox size for the incoming packets on a NETCONN_RAW. More...
 
#define DEFAULT_TCP_RECVMBOX_SIZE   6
 DEFAULT_TCP_RECVMBOX_SIZE: The mailbox size for the incoming packets on a NETCONN_TCP. More...
 
#define DEFAULT_THREAD_STACKSIZE   configMINIMAL_STACK_SIZE
 DEFAULT_THREAD_STACKSIZE: The stack size used by any other lwIP thread. More...
 
#define DEFAULT_UDP_RECVMBOX_SIZE   6
 DEFAULT_UDP_RECVMBOX_SIZE: The mailbox size for the incoming packets on a NETCONN_UDP. More...
 
#define ETH_PAD_SIZE   0
 ETH_PAD_SIZE: number of bytes added before the Ethernet header to ensure alignment of payload after that header. More...
 
#define ETHARP_DEBUG   LWIP_DBG_OFF
 
#define ICMP_DEBUG   LWIP_DBG_OFF
 
#define ICMP_STATS   1
 
#define ICMP_TTL   255
 
#define INET_DEBUG   LWIP_DBG_OFF
 
#define IP_DEBUG   LWIP_DBG_OFF
 
#define IP_FORWARD   0
 If enabled, outgoing packets are queued during hardware address resolution. More...
 
#define IP_OPTIONS   1
 
#define IP_REASS_DEBUG   LWIP_DBG_OFF
 
#define IP_REASSEMBLY   0
 IP reassembly and segmentation. More...
 
#define IP_STATS   1
 
#define LINK_STATS   1
 
#define LWIP_DHCP   0
 
#define LWIP_NOASSERT   1
 
#define LWIP_PLATFORM_ASSERT(x)   NAKED_TRACE_COM2(x)
 
#define LWIP_PLATFORM_DIAG(x)   NAKED_TRACE_COM2 x
 
#define LWIP_RAW   0
 
#define LWIP_STATS   1
 
#define LWIP_STATS_DISPLAY   1
 
#define LWIP_TCP   1
 
#define LWIP_TIMEVAL_PRIVATE   0
 
#define LWIP_UDP   0
 
#define MEM_ALIGNMENT   4
 
#define MEM_DEBUG   LWIP_DBG_OFF
 
#define MEM_SIZE   4 * 1024
 
#define MEM_STATS   1
 
#define MEMP_DEBUG   LWIP_DBG_OFF
 
#define MEMP_NUM_NETBUF   3
 
#define MEMP_NUM_NETCONN   6
 
#define MEMP_NUM_PBUF   0
 
#define MEMP_NUM_RAW_PCB   0
 
#define MEMP_NUM_SYS_TIMEOUT   4
 
#define MEMP_NUM_TCP_PCB   15
 
#define MEMP_NUM_TCP_PCB_LISTEN   1
 
#define MEMP_NUM_TCP_SEG   9
 
#define MEMP_NUM_UDP_PCB   0
 
#define MEMP_STATS   1
 
#define NETIF_DEBUG   LWIP_DBG_OFF
 
#define PBUF_DEBUG   LWIP_DBG_ON
 
#define PBUF_LINK_HLEN   (14 + ETH_PAD_SIZE)
 
#define PBUF_POOL_BUFSIZE   512
 
#define PBUF_POOL_SIZE   10
 
#define PBUF_STATS   1
 
#define RAW_DEBUG   LWIP_DBG_OFF
 
#define SOCKETS_DEBUG   LWIP_DBG_OFF
 
#define SYS_DEBUG   LWIP_DBG_OFF
 
#define SYS_LIGHTWEIGHT_PROT   1
 
#define SYS_STATS   1
 
#define TCP_CWND_DEBUG   LWIP_DBG_OFF
 
#define TCP_DEBUG   LWIP_DBG_ON
 
#define TCP_FR_DEBUG   LWIP_DBG_OFF
 
#define TCP_INPUT_DEBUG   LWIP_DBG_OFF
 
#define TCP_MAXRTX   6
 
#define TCP_MSS   1024
 
#define TCP_OUTPUT_DEBUG   LWIP_DBG_OFF
 
#define TCP_QLEN_DEBUG   LWIP_DBG_OFF
 
#define TCP_QUEUE_OOSEQ   1
 
#define TCP_RST_DEBUG   LWIP_DBG_OFF
 
#define TCP_RTO_DEBUG   LWIP_DBG_OFF
 
#define TCP_SND_BUF   2048
 
#define TCP_SND_QUEUELEN   ((6 * (TCP_SND_BUF) + (TCP_MSS - 1))/(TCP_MSS))
 
#define TCP_STATS   1
 
#define TCP_SYNMAXRTX   6
 
#define TCP_TTL   255
 
#define TCP_WND   2048
 
#define TCP_WND_DEBUG   LWIP_DBG_OFF
 
#define TCPIP_DEBUG   LWIP_DBG_OFF
 
#define TCPIP_MBOX_SIZE   6
 TCPIP_MBOX_SIZE: The mailbox size for the tcpip thread messages The queue size value itself is platform-dependent, but is passed to sys_mbox_new() when tcpip_init is called. More...
 
#define TCPIP_THREAD_NAME   "TCP/IP"
 TCPIP_THREAD_NAME: The name assigned to the main tcpip thread. More...
 
#define TCPIP_THREAD_PRIO   lwipINTERFACE_TASK_PRIORITY
 TCPIP_THREAD_PRIO: The priority assigned to the main tcpip thread. More...
 
#define TCPIP_THREAD_STACKSIZE   lwipINTERFACE_STACK_SIZE
 TCPIP_THREAD_STACKSIZE: The stack size used by the main tcpip thread. More...
 
#define UDP_DEBUG   LWIP_DBG_OFF
 
#define UDP_STATS   1
 
#define UDP_TTL   0
 

#define API_LIB_DEBUG   LWIP_DBG_OFF

Referenced by netconn_recv_data(), and netconn_send().

#define API_MSG_DEBUG   LWIP_DBG_ON

Referenced by accept_function().

#define ARP_TABLE_SIZE   5

Number of active hardware address, IP address pairs cached.

Referenced by etharp_output(), etharp_tmr(), and find_entry().

#define DBG_MIN_LEVEL   LWIP_DBG_LEVEL_SEVERE
#define DBG_TYPES_ON   0xff
#define DEFAULT_ACCEPTMBOX_SIZE   6

DEFAULT_ACCEPTMBOX_SIZE: The mailbox size for the incoming connections.

The queue size value itself is platform-dependent, but is passed to sys_mbox_new() when the acceptmbox is created.

Referenced by do_listen().

#define DEFAULT_RAW_RECVMBOX_SIZE   6

DEFAULT_RAW_RECVMBOX_SIZE: The mailbox size for the incoming packets on a NETCONN_RAW.

The queue size value itself is platform-dependent, but is passed to sys_mbox_new() when the recvmbox is created.

Referenced by netconn_alloc().

#define DEFAULT_TCP_RECVMBOX_SIZE   6

DEFAULT_TCP_RECVMBOX_SIZE: The mailbox size for the incoming packets on a NETCONN_TCP.

The queue size value itself is platform-dependent, but is passed to sys_mbox_new() when the recvmbox is created.

Referenced by netconn_alloc().

#define DEFAULT_THREAD_STACKSIZE   configMINIMAL_STACK_SIZE

DEFAULT_THREAD_STACKSIZE: The stack size used by any other lwIP thread.

The stack size value itself is platform-dependent, but is passed to sys_thread_new() when the thread is created.

#define DEFAULT_UDP_RECVMBOX_SIZE   6

DEFAULT_UDP_RECVMBOX_SIZE: The mailbox size for the incoming packets on a NETCONN_UDP.

The queue size value itself is platform-dependent, but is passed to sys_mbox_new() when the recvmbox is created.

Referenced by netconn_alloc().

#define ETH_PAD_SIZE   0

ETH_PAD_SIZE: number of bytes added before the Ethernet header to ensure alignment of payload after that header.

Since the header is 14 bytes long, without this padding e.g. addresses in the IP header will not be aligned on a 32-bit boundary, so setting this to 2 can speed up 32-bit-platforms.

Referenced by low_level_input(), and low_level_output().

#define ICMP_DEBUG   LWIP_DBG_OFF

Referenced by icmp_input(), and icmp_send_response().

#define ICMP_STATS   1
#define ICMP_TTL   255

Referenced by icmp_input(), and icmp_send_response().

#define INET_DEBUG   LWIP_DBG_OFF
#define IP_DEBUG   LWIP_DBG_OFF

Referenced by ip_input(), ip_output(), and ip_route().

#define IP_FORWARD   0

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.

#define IP_OPTIONS   1
#define IP_REASS_DEBUG   LWIP_DBG_OFF

Referenced by ip_frag().

#define IP_REASSEMBLY   0

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 packetsReassemble incoming fragmented IP packets

#define IP_STATS   1
#define LINK_STATS   1
#define LWIP_DHCP   0
#define LWIP_NOASSERT   1
#define LWIP_PLATFORM_ASSERT (   x)    NAKED_TRACE_COM2(x)
#define LWIP_PLATFORM_DIAG (   x)    NAKED_TRACE_COM2 x
#define LWIP_RAW   0
#define LWIP_STATS   1
#define LWIP_STATS_DISPLAY   1
#define LWIP_TCP   1
#define LWIP_TIMEVAL_PRIVATE   0
#define LWIP_UDP   0
#define MEM_DEBUG   LWIP_DBG_OFF

Referenced by mem_free(), mem_malloc(), and mem_trim().

#define MEM_SIZE   4 * 1024
#define MEM_STATS   1
#define MEMP_DEBUG   LWIP_DBG_OFF
#define MEMP_NUM_NETBUF   3
#define MEMP_NUM_NETCONN   6
#define MEMP_NUM_PBUF   0
#define MEMP_NUM_RAW_PCB   0
#define MEMP_NUM_SYS_TIMEOUT   4
#define MEMP_NUM_TCP_PCB   15
#define MEMP_NUM_TCP_PCB_LISTEN   1
#define MEMP_NUM_TCP_SEG   9
#define MEMP_NUM_UDP_PCB   0
#define MEMP_STATS   1
#define PBUF_LINK_HLEN   (14 + ETH_PAD_SIZE)
#define PBUF_POOL_BUFSIZE   512
#define PBUF_POOL_SIZE   10
#define PBUF_STATS   1
#define RAW_DEBUG   LWIP_DBG_OFF
#define SYS_DEBUG   LWIP_DBG_OFF
#define SYS_LIGHTWEIGHT_PROT   1
#define SYS_STATS   1
#define TCP_CWND_DEBUG   LWIP_DBG_OFF
#define TCP_FR_DEBUG   LWIP_DBG_OFF

Referenced by tcp_rexmit_fast().

#define TCP_INPUT_DEBUG   LWIP_DBG_OFF
#define TCP_MAXRTX   6

Referenced by tcp_slowtmr().

#define TCP_MSS   1024
#define TCP_QLEN_DEBUG   LWIP_DBG_OFF
#define TCP_QUEUE_OOSEQ   1
#define TCP_RST_DEBUG   LWIP_DBG_OFF
#define TCP_RTO_DEBUG   LWIP_DBG_OFF
#define TCP_SND_BUF   2048

Referenced by lwip_send(), and tcp_alloc().

#define TCP_SND_QUEUELEN   ((6 * (TCP_SND_BUF) + (TCP_MSS - 1))/(TCP_MSS))
#define TCP_STATS   1
#define TCP_SYNMAXRTX   6

Referenced by tcp_slowtmr().

#define TCP_TTL   255

Referenced by tcp_alloc(), and tcp_rst().

#define TCP_WND_DEBUG   LWIP_DBG_OFF

Referenced by tcp_receive().

#define TCPIP_DEBUG   LWIP_DBG_OFF

Referenced by tcpip_input(), and tcpip_thread().

#define TCPIP_MBOX_SIZE   6

TCPIP_MBOX_SIZE: The mailbox size for the tcpip thread messages The queue size value itself is platform-dependent, but is passed to sys_mbox_new() when tcpip_init is called.

Referenced by tcpip_init().

#define TCPIP_THREAD_NAME   "TCP/IP"

TCPIP_THREAD_NAME: The name assigned to the main tcpip thread.

Referenced by tcpip_init().

#define TCPIP_THREAD_PRIO   lwipINTERFACE_TASK_PRIORITY

TCPIP_THREAD_PRIO: The priority assigned to the main tcpip thread.

The priority value itself is platform-dependent, but is passed to sys_thread_new() when the thread is created.

Referenced by tcpip_init().

#define TCPIP_THREAD_STACKSIZE   lwipINTERFACE_STACK_SIZE

TCPIP_THREAD_STACKSIZE: The stack size used by the main tcpip thread.

The stack size value itself is platform-dependent, but is passed to sys_thread_new() when the thread is created.

Referenced by tcpip_init().

#define UDP_DEBUG   LWIP_DBG_OFF
#define UDP_STATS   1
#define UDP_TTL   0