2010-09-21 06:11:24 +00:00
|
|
|
/*
|
|
|
|
------------------------------------
|
|
|
|
---------- Memory options ----------
|
|
|
|
------------------------------------
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* This combo allows us to implement malloc, free, and realloc ourselves */
|
|
|
|
#define MEM_LIBC_MALLOC 1
|
|
|
|
#define MEMP_MEM_MALLOC 1
|
|
|
|
|
2010-11-02 04:05:34 +00:00
|
|
|
/* Define LWIP_COMPAT_MUTEX if the port has no mutexes and binary semaphores
|
|
|
|
should be used instead */
|
|
|
|
#define LWIP_COMPAT_MUTEX 1
|
|
|
|
|
2010-09-21 06:11:24 +00:00
|
|
|
#define MEM_ALIGNMENT 4
|
|
|
|
|
|
|
|
#define LWIP_ARP 0
|
|
|
|
|
|
|
|
#define ARP_QUEUEING 0
|
|
|
|
|
|
|
|
#define IP_FORWARD 0
|
|
|
|
|
|
|
|
#define IP_REASS_MAX_PBUFS 0xFFFFFFFF
|
|
|
|
|
|
|
|
#define IP_DEFAULT_TTL 128
|
|
|
|
|
|
|
|
#define IP_SOF_BROADCAST 1
|
|
|
|
|
|
|
|
#define IP_SOF_BROADCAST_RECV 1
|
|
|
|
|
|
|
|
#define LWIP_ICMP 0
|
|
|
|
|
|
|
|
#define LWIP_RAW 0
|
|
|
|
|
|
|
|
#define LWIP_DHCP 0
|
|
|
|
|
|
|
|
#define LWIP_AUTOIP 0
|
|
|
|
|
|
|
|
#define LWIP_SNMP 0
|
|
|
|
|
|
|
|
#define LWIP_IGMP 0
|
|
|
|
|
|
|
|
#define LWIP_DNS 0
|
|
|
|
|
|
|
|
#define LWIP_UDP 0
|
|
|
|
|
|
|
|
#define LWIP_UDPLITE 0
|
|
|
|
|
|
|
|
#define LWIP_TCP 1
|
|
|
|
|
|
|
|
#define TCP_QUEUE_OOSEQ 1
|
|
|
|
|
|
|
|
#define TCP_MSS 1024
|
|
|
|
|
|
|
|
#define TCP_SND_BUF (TCP_MSS * 8)
|
|
|
|
|
|
|
|
#define TCP_SND_QUEUELEN (8 * (TCP_SND_BUF / TCP_MSS))
|
|
|
|
|
|
|
|
#define TCP_SNDLOWAT TCP_MSS
|
|
|
|
|
|
|
|
#define TCP_WND 0xFFFF
|
|
|
|
|
|
|
|
#define TCP_MAXRTX 12
|
|
|
|
|
|
|
|
#define TCP_SYNMAXRTX 4
|
|
|
|
|
|
|
|
#define TCP_LISTEN_BACKLOG 1
|
|
|
|
|
|
|
|
#define LWIP_TCP_TIMESTAMPS 1
|
|
|
|
|
|
|
|
#define LWIP_CALLBACK_API 1
|
|
|
|
|
|
|
|
#define LWIP_NETIF_API 1
|
|
|
|
|
|
|
|
#define LWIP_SOCKET 0
|
|
|
|
|
|
|
|
#define LWIP_NETCONN 0
|
|
|
|
|
|
|
|
#define LWIP_NETIF_HWADDRHINT 0
|
|
|
|
|
|
|
|
#define LWIP_STATS 0
|
|
|
|
|
|
|
|
#define ICMP_STATS 0
|
|
|
|
|
|
|
|
#define PPP_SUPPORT 0
|
|
|
|
|
|
|
|
#define PPPOE_SUPPORT 0
|
|
|
|
|
|
|
|
#define PPPOS_SUPPORT 0
|
|
|
|
|
|
|
|
/*
|
|
|
|
---------------------------------------
|
|
|
|
---------- Debugging options ----------
|
|
|
|
---------------------------------------
|
|
|
|
*/
|
|
|
|
/**
|
|
|
|
* LWIP_DBG_MIN_LEVEL: After masking, the value of the debug is
|
|
|
|
* compared against this value. If it is smaller, then debugging
|
|
|
|
* messages are written.
|
|
|
|
*/
|
|
|
|
#define LWIP_DBG_MIN_LEVEL LWIP_DBG_LEVEL_ALL
|
|
|
|
|
|
|
|
/**
|
|
|
|
* LWIP_DBG_TYPES_ON: A mask that can be used to globally enable/disable
|
|
|
|
* debug messages of certain types.
|
|
|
|
*/
|
|
|
|
#define LWIP_DBG_TYPES_ON LWIP_DBG_ON
|
|
|
|
|
|
|
|
/**
|
|
|
|
* NETIF_DEBUG: Enable debugging in netif.c.
|
|
|
|
*/
|
|
|
|
#define NETIF_DEBUG LWIP_DBG_OFF
|
|
|
|
|
|
|
|
/**
|
|
|
|
* PBUF_DEBUG: Enable debugging in pbuf.c.
|
|
|
|
*/
|
|
|
|
#define PBUF_DEBUG LWIP_DBG_OFF
|
|
|
|
|
|
|
|
/**
|
|
|
|
* INET_DEBUG: Enable debugging in inet.c.
|
|
|
|
*/
|
|
|
|
#define INET_DEBUG LWIP_DBG_OFF
|
|
|
|
|
|
|
|
/**
|
|
|
|
* IP_DEBUG: Enable debugging for IP.
|
|
|
|
*/
|
|
|
|
#define IP_DEBUG LWIP_DBG_OFF
|
|
|
|
|
|
|
|
/**
|
|
|
|
* IP_REASS_DEBUG: Enable debugging in ip_frag.c for both frag & reass.
|
|
|
|
*/
|
|
|
|
#define IP_REASS_DEBUG LWIP_DBG_OFF
|
|
|
|
|
|
|
|
/**
|
|
|
|
* MEM_DEBUG: Enable debugging in mem.c.
|
|
|
|
*/
|
|
|
|
#define MEM_DEBUG LWIP_DBG_OFF
|
|
|
|
|
|
|
|
/**
|
|
|
|
* MEMP_DEBUG: Enable debugging in memp.c.
|
|
|
|
*/
|
|
|
|
#define MEMP_DEBUG LWIP_DBG_OFF
|
|
|
|
|
|
|
|
/**
|
|
|
|
* SYS_DEBUG: Enable debugging in sys.c.
|
|
|
|
*/
|
|
|
|
#define SYS_DEBUG LWIP_DBG_OFF
|
|
|
|
|
|
|
|
/**
|
|
|
|
* TCP_DEBUG: Enable debugging for TCP.
|
|
|
|
*/
|
2011-05-24 18:05:51 +00:00
|
|
|
#define TCP_DEBUG LWIP_DBG_ON
|
2010-09-21 06:11:24 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* TCP_INPUT_DEBUG: Enable debugging in tcp_in.c for incoming debug.
|
|
|
|
*/
|
|
|
|
#define TCP_INPUT_DEBUG LWIP_DBG_OFF
|
|
|
|
|
|
|
|
/**
|
|
|
|
* TCP_FR_DEBUG: Enable debugging in tcp_in.c for fast retransmit.
|
|
|
|
*/
|
|
|
|
#define TCP_FR_DEBUG LWIP_DBG_OFF
|
|
|
|
|
|
|
|
/**
|
|
|
|
* TCP_RTO_DEBUG: Enable debugging in TCP for retransmit
|
|
|
|
* timeout.
|
|
|
|
*/
|
|
|
|
#define TCP_RTO_DEBUG LWIP_DBG_OFF
|
|
|
|
|
|
|
|
/**
|
|
|
|
* TCP_CWND_DEBUG: Enable debugging for TCP congestion window.
|
|
|
|
*/
|
|
|
|
#define TCP_CWND_DEBUG LWIP_DBG_OFF
|
|
|
|
|
|
|
|
/**
|
|
|
|
* TCP_WND_DEBUG: Enable debugging in tcp_in.c for window updating.
|
|
|
|
*/
|
|
|
|
#define TCP_WND_DEBUG LWIP_DBG_OFF
|
|
|
|
|
|
|
|
/**
|
|
|
|
* TCP_OUTPUT_DEBUG: Enable debugging in tcp_out.c output functions.
|
|
|
|
*/
|
|
|
|
#define TCP_OUTPUT_DEBUG LWIP_DBG_OFF
|
|
|
|
|
|
|
|
/**
|
|
|
|
* TCP_RST_DEBUG: Enable debugging for TCP with the RST message.
|
|
|
|
*/
|
|
|
|
#define TCP_RST_DEBUG LWIP_DBG_OFF
|
|
|
|
|
|
|
|
/**
|
|
|
|
* TCP_QLEN_DEBUG: Enable debugging for TCP queue lengths.
|
|
|
|
*/
|
|
|
|
#define TCP_QLEN_DEBUG LWIP_DBG_OFF
|
|
|
|
|
|
|
|
/**
|
|
|
|
* TCPIP_DEBUG: Enable debugging in tcpip.c.
|
|
|
|
*/
|
|
|
|
#define TCPIP_DEBUG LWIP_DBG_OFF
|