From e9b84fa94dcae488a6752e9b7d29ac66375bd8f1 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 14 Jan 2024 18:30:50 +1100 Subject: [PATCH] AP_Networking: allow hwdef.dat to override more options --- libraries/AP_Networking/config/lwipopts.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/libraries/AP_Networking/config/lwipopts.h b/libraries/AP_Networking/config/lwipopts.h index 2eec204914..c1342901c6 100644 --- a/libraries/AP_Networking/config/lwipopts.h +++ b/libraries/AP_Networking/config/lwipopts.h @@ -31,7 +31,10 @@ */ #pragma once +#include +#if CONFIG_HAL_BOARD == HAL_BOARD_CHIBIOS #include "hwdef.h" +#endif #ifdef __cplusplus extern "C" @@ -72,7 +75,9 @@ extern "C" #define LWIP_NETCONN (NO_SYS==0) #define LWIP_NETIF_API (NO_SYS==0) +#ifndef LWIP_IGMP #define LWIP_IGMP LWIP_IPV4 +#endif #define LWIP_ICMP LWIP_IPV4 #define LWIP_SNMP LWIP_UDP @@ -216,7 +221,9 @@ a lot of data that needs to be copied, this should be set high. */ #define LWIP_TCP 1 #define TCP_TTL 255 +#ifndef LWIP_ALTCP #define LWIP_ALTCP (LWIP_TCP) +#endif #ifdef LWIP_HAVE_MBEDTLS #define LWIP_ALTCP_TLS (LWIP_TCP) #define LWIP_ALTCP_TLS_MBEDTLS (LWIP_TCP)