AP_Networking: enable Socket IP reuse

This commit is contained in:
Tom Pittenger 2024-05-28 15:29:27 -07:00 committed by Peter Barker
parent 304751e162
commit 9669699405
1 changed files with 6 additions and 0 deletions

View File

@ -69,6 +69,12 @@ extern "C"
#define MEMP_MEM_MALLOC 1 #define MEMP_MEM_MALLOC 1
#define LWIP_NETCONN_SEM_PER_THREAD 0 #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 NO_SYS 0
#define LWIP_SOCKET (NO_SYS==0) #define LWIP_SOCKET (NO_SYS==0)