[TCPIP] Remove options in lwipopts.h having default values

If lwipopts.h doesn't provide a define, a default value is taken from lwip/src/include/lwip/opt.h
This commit is contained in:
Hervé Poussineau 2024-04-20 18:44:23 +02:00
parent 0b8a47c3f7
commit 5e5b31ecbd

View file

@ -16,12 +16,8 @@
#define LWIP_ARP 0 #define LWIP_ARP 0
#define ARP_QUEUEING 0
#define ETH_PAD_SIZE 2 #define ETH_PAD_SIZE 2
#define IP_FORWARD 0
#define IP_REASS_MAX_PBUFS 0xFFFFFFFF #define IP_REASS_MAX_PBUFS 0xFFFFFFFF
#define IP_DEFAULT_TTL 128 #define IP_DEFAULT_TTL 128
@ -34,24 +30,8 @@
#define LWIP_RAW 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_UDP 0
#define LWIP_UDPLITE 0
#define LWIP_TCP 1
#define TCP_QUEUE_OOSEQ 1
#define SO_REUSE 1 #define SO_REUSE 1
#define SO_REUSE_RXTOALL 1 #define SO_REUSE_RXTOALL 1
@ -76,131 +56,21 @@
#define LWIP_TCP_TIMESTAMPS 1 #define LWIP_TCP_TIMESTAMPS 1
#define LWIP_CALLBACK_API 1
#define LWIP_NETIF_API 1
#define LWIP_SOCKET 0 #define LWIP_SOCKET 0
#define LWIP_NETCONN 0 #define LWIP_NETCONN 0
#define LWIP_NETIF_HWADDRHINT 0
#define LWIP_STATS 0 #define LWIP_STATS 0
#define ICMP_STATS 0 #define ICMP_STATS 0
#define PPP_SUPPORT 0
#define PPPOE_SUPPORT 0
#define PPPOS_SUPPORT 0
/* /*
--------------------------------------- ---------------------------------------
---------- Debugging options ---------- ---------- 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. * TCP_DEBUG: Enable debugging for TCP.
*/ */
#define TCP_DEBUG LWIP_DBG_ON #define TCP_DEBUG LWIP_DBG_ON
/**
* 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