kopia lustrzana https://github.com/espressif/esp-idf
lwip: Added KConfig option to control checksum validation on IP/UDP/ICMP
This maintains the current default, but could be swapped if desired Merges https://github.com/espressif/esp-idf/pull/6187pull/6365/head
rodzic
c3cc5b17e0
commit
5d91a27a1e
|
@ -559,6 +559,28 @@ menu "LWIP"
|
|||
|
||||
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
|
||||
int "TCP/IP Task Stack Size"
|
||||
default 3072
|
||||
|
|
|
@ -968,8 +968,9 @@
|
|||
#define LWIP_DEBUG LWIP_DBG_OFF
|
||||
#define TCP_DEBUG LWIP_DBG_OFF
|
||||
|
||||
#define CHECKSUM_CHECK_UDP 0
|
||||
#define CHECKSUM_CHECK_IP 0
|
||||
#define CHECKSUM_CHECK_UDP CONFIG_LWIP_CHECKSUM_CHECK_UDP
|
||||
#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_SEM_PER_THREAD 1
|
||||
|
|
Ładowanie…
Reference in New Issue