mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-02 12:14:32 +02:00
Merge branch 'feature/enable_lwip_checksums' into 'master'
lw-IP: Add Kconfig options to enable/disable checksum validation for IP/UDP/ICMP Closes IDFGH-4349 See merge request espressif/esp-idf!11429
This commit is contained in:
@@ -559,6 +559,28 @@ menu "LWIP"
|
|||||||
|
|
||||||
endmenu # UDP
|
endmenu # UDP
|
||||||
|
|
||||||
|
menu "Checksums"
|
||||||
|
|
||||||
|
config LWIP_CHECKSUM_CHECK_IP
|
||||||
|
bool "Enable LWIP IP checksums"
|
||||||
|
default n
|
||||||
|
help
|
||||||
|
Enable checksum checking for received IP messages
|
||||||
|
|
||||||
|
config LWIP_CHECKSUM_CHECK_UDP
|
||||||
|
bool "Enable LWIP UDP checksums"
|
||||||
|
default n
|
||||||
|
help
|
||||||
|
Enable checksum checking for received UDP messages
|
||||||
|
|
||||||
|
config LWIP_CHECKSUM_CHECK_ICMP
|
||||||
|
bool "Enable LWIP ICMP checksums"
|
||||||
|
default y
|
||||||
|
help
|
||||||
|
Enable checksum checking for received ICMP messages
|
||||||
|
|
||||||
|
endmenu # Checksums
|
||||||
|
|
||||||
config LWIP_TCPIP_TASK_STACK_SIZE
|
config LWIP_TCPIP_TASK_STACK_SIZE
|
||||||
int "TCP/IP Task Stack Size"
|
int "TCP/IP Task Stack Size"
|
||||||
default 3072
|
default 3072
|
||||||
@@ -837,6 +859,10 @@ menu "LWIP"
|
|||||||
bool "Enable ICMP debug messages"
|
bool "Enable ICMP debug messages"
|
||||||
default n
|
default n
|
||||||
|
|
||||||
|
config LWIP_DHCP_DEBUG
|
||||||
|
bool "Enable DHCP debug messages"
|
||||||
|
default n
|
||||||
|
|
||||||
config LWIP_IP6_DEBUG
|
config LWIP_IP6_DEBUG
|
||||||
bool "Enable IP6 debug messages"
|
bool "Enable IP6 debug messages"
|
||||||
default n
|
default n
|
||||||
@@ -845,5 +871,9 @@ menu "LWIP"
|
|||||||
bool "Enable ICMP6 debug messages"
|
bool "Enable ICMP6 debug messages"
|
||||||
default n
|
default n
|
||||||
|
|
||||||
|
config LWIP_TCP_DEBUG
|
||||||
|
bool "Enable TCP debug messages"
|
||||||
|
default n
|
||||||
|
|
||||||
endmenu #debug
|
endmenu #debug
|
||||||
endmenu
|
endmenu
|
||||||
|
@@ -837,6 +837,15 @@
|
|||||||
#define ICMP6_DEBUG LWIP_DBG_OFF
|
#define ICMP6_DEBUG LWIP_DBG_OFF
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* DHCP_DEBUG: Enable debugging in dhcp.c.
|
||||||
|
*/
|
||||||
|
#ifdef CONFIG_LWIP_DHCP_DEBUG
|
||||||
|
#define DHCP_DEBUG LWIP_DBG_ON
|
||||||
|
#else
|
||||||
|
#define DHCP_DEBUG LWIP_DBG_OFF
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* IP_DEBUG: Enable debugging for IP.
|
* IP_DEBUG: Enable debugging for IP.
|
||||||
*/
|
*/
|
||||||
@@ -847,7 +856,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* IP_DEBUG: Enable debugging for IP.
|
* IP6_DEBUG: Enable debugging for IP6.
|
||||||
*/
|
*/
|
||||||
#ifdef CONFIG_LWIP_IP6_DEBUG
|
#ifdef CONFIG_LWIP_IP6_DEBUG
|
||||||
#define IP6_DEBUG LWIP_DBG_ON
|
#define IP6_DEBUG LWIP_DBG_ON
|
||||||
@@ -855,6 +864,15 @@
|
|||||||
#define IP6_DEBUG LWIP_DBG_OFF
|
#define IP6_DEBUG LWIP_DBG_OFF
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* TCP_DEBUG: Enable debugging for TCP.
|
||||||
|
*/
|
||||||
|
#ifdef CONFIG_LWIP_TCP_DEBUG
|
||||||
|
#define TCP_DEBUG LWIP_DBG_ON
|
||||||
|
#else
|
||||||
|
#define TCP_DEBUG LWIP_DBG_OFF
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* MEMP_DEBUG: Enable debugging in memp.c.
|
* MEMP_DEBUG: Enable debugging in memp.c.
|
||||||
*/
|
*/
|
||||||
@@ -962,14 +980,13 @@
|
|||||||
#define TCP_WND CONFIG_LWIP_TCP_WND_DEFAULT
|
#define TCP_WND CONFIG_LWIP_TCP_WND_DEFAULT
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* DHCP_DEBUG: Enable debugging in dhcp.c.
|
* LWIP_DEBUG: Enable lwip debugging in other modules.
|
||||||
*/
|
*/
|
||||||
#define DHCP_DEBUG LWIP_DBG_OFF
|
|
||||||
#define LWIP_DEBUG LWIP_DBG_OFF
|
#define LWIP_DEBUG LWIP_DBG_OFF
|
||||||
#define TCP_DEBUG LWIP_DBG_OFF
|
|
||||||
|
|
||||||
#define CHECKSUM_CHECK_UDP 0
|
#define CHECKSUM_CHECK_UDP CONFIG_LWIP_CHECKSUM_CHECK_UDP
|
||||||
#define CHECKSUM_CHECK_IP 0
|
#define CHECKSUM_CHECK_IP CONFIG_LWIP_CHECKSUM_CHECK_IP
|
||||||
|
#define CHECKSUM_CHECK_ICMP CONFIG_LWIP_CHECKSUM_CHECK_ICMP
|
||||||
|
|
||||||
#define LWIP_NETCONN_FULLDUPLEX 1
|
#define LWIP_NETCONN_FULLDUPLEX 1
|
||||||
#define LWIP_NETCONN_SEM_PER_THREAD 1
|
#define LWIP_NETCONN_SEM_PER_THREAD 1
|
||||||
|
Reference in New Issue
Block a user