Merge branch 'bugfix/lwip_so_reuse' into 'master'
make SO_REUSE configurable via menuconfig SSC expects SO_REUSE to be off by default. Trivial change, moving this option to menuconfig. This should also (finally!) fix failing tests in master. See merge request !99
This commit is contained in:
commit
d260aa777c
2 changed files with 10 additions and 1 deletions
|
@ -16,6 +16,13 @@ config LWIP_THREAD_LOCAL_STORAGE_INDEX
|
||||||
Specify the thread-local-storage-pointer index for lwip
|
Specify the thread-local-storage-pointer index for lwip
|
||||||
use.
|
use.
|
||||||
|
|
||||||
|
config LWIP_SO_REUSE
|
||||||
|
bool "Enable SO_REUSEADDR option"
|
||||||
|
default 0
|
||||||
|
help
|
||||||
|
Enabling this option allows binding to a port which remains in
|
||||||
|
TIME_WAIT.
|
||||||
|
|
||||||
endmenu
|
endmenu
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -34,6 +34,7 @@
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include "esp_task.h"
|
#include "esp_task.h"
|
||||||
|
#include "sdkconfig.h"
|
||||||
|
|
||||||
/* Enable all Espressif-only options */
|
/* Enable all Espressif-only options */
|
||||||
#define LWIP_ESP8266
|
#define LWIP_ESP8266
|
||||||
|
@ -404,8 +405,9 @@ extern unsigned char misc_prof_get_tcp_snd_buf(void);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* SO_REUSE==1: Enable SO_REUSEADDR option.
|
* SO_REUSE==1: Enable SO_REUSEADDR option.
|
||||||
|
* This option is set via menuconfig.
|
||||||
*/
|
*/
|
||||||
#define SO_REUSE 1
|
#define SO_REUSE CONFIG_LWIP_SO_REUSE
|
||||||
|
|
||||||
/*
|
/*
|
||||||
----------------------------------------
|
----------------------------------------
|
||||||
|
|
Loading…
Reference in a new issue