From 9669699405902bea4afbeab936b9cecbdbff76a5 Mon Sep 17 00:00:00 2001 From: Tom Pittenger Date: Tue, 28 May 2024 15:29:27 -0700 Subject: [PATCH] AP_Networking: enable Socket IP reuse --- libraries/AP_Networking/config/lwipopts.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libraries/AP_Networking/config/lwipopts.h b/libraries/AP_Networking/config/lwipopts.h index c1342901c6..672a935676 100644 --- a/libraries/AP_Networking/config/lwipopts.h +++ b/libraries/AP_Networking/config/lwipopts.h @@ -69,6 +69,12 @@ extern "C" #define MEMP_MEM_MALLOC 1 #define LWIP_NETCONN_SEM_PER_THREAD 0 +/** + * SO_REUSE==1: Enable SO_REUSEADDR option. + */ +#ifndef SO_REUSE +#define SO_REUSE 1 +#endif #define NO_SYS 0 #define LWIP_SOCKET (NO_SYS==0)