From b3c6320899d6b27899ab3c67c745e8d3b29af3a2 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 19 Feb 2019 13:46:18 +0000 Subject: working ethernet --- app/lwip/lwipopts.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'app/lwip/lwipopts.h') diff --git a/app/lwip/lwipopts.h b/app/lwip/lwipopts.h index e535e59..3358cad 100644 --- a/app/lwip/lwipopts.h +++ b/app/lwip/lwipopts.h @@ -29,6 +29,8 @@ #define MTU 1500 +#define ICMP_TTL 64 + #if 0 #define ICMP_DEBUG LWIP_DBG_ON #define UDP_DEBUG LWIP_DBG_ON @@ -156,11 +158,11 @@ The STM32F4x7 allows computing and verifying the IP, UDP, TCP and ICMP checksums */ /* CHECKSUM_GEN_IP==0: Generate checksums by hardware for outgoing IP packets.*/ -#define CHECKSUM_GEN_IP 0 +#define CHECKSUM_GEN_IP 1 /* CHECKSUM_GEN_UDP==0: Generate checksums by hardware for outgoing UDP packets.*/ -#define CHECKSUM_GEN_UDP 0 +#define CHECKSUM_GEN_UDP 1 /* CHECKSUM_GEN_TCP==0: Generate checksums by hardware for outgoing TCP packets.*/ -#define CHECKSUM_GEN_TCP 0 +#define CHECKSUM_GEN_TCP 1 /* CHECKSUM_CHECK_IP==0: Check checksums by hardware for incoming IP packets.*/ #define CHECKSUM_CHECK_IP 1 /* CHECKSUM_CHECK_UDP==0: Check checksums by hardware for incoming UDP packets.*/ -- cgit v1.2.3