forked from espressif/esp-idf
feat: Added option to enable or disable Port mapping in NAPT
This commit is contained in:
@@ -227,6 +227,13 @@ menu "LWIP"
|
|||||||
help
|
help
|
||||||
Enabling this option allows Network Address and Port Translation.
|
Enabling this option allows Network Address and Port Translation.
|
||||||
|
|
||||||
|
config LWIP_IPV4_NAPT_PORTMAP
|
||||||
|
bool "Enable NAT Port Mapping (new/experimental)"
|
||||||
|
depends on LWIP_IPV4_NAPT
|
||||||
|
default y
|
||||||
|
help
|
||||||
|
Enabling this option allows Port Forwarding or Port mapping.
|
||||||
|
|
||||||
config LWIP_STATS
|
config LWIP_STATS
|
||||||
bool "Enable LWIP statistics"
|
bool "Enable LWIP statistics"
|
||||||
default n
|
default n
|
||||||
|
Submodule components/lwip/lwip updated: 7896c6cad0...90009cc2b0
@@ -216,6 +216,13 @@ extern "C" {
|
|||||||
*/
|
*/
|
||||||
#ifdef CONFIG_LWIP_IPV4_NAPT
|
#ifdef CONFIG_LWIP_IPV4_NAPT
|
||||||
#define IP_NAPT 1
|
#define IP_NAPT 1
|
||||||
|
|
||||||
|
#ifdef CONFIG_LWIP_IPV4_NAPT_PORTMAP
|
||||||
|
#define IP_NAPT_PORTMAP 1
|
||||||
|
#else
|
||||||
|
#define IP_NAPT_PORTMAP 0
|
||||||
|
#endif
|
||||||
|
|
||||||
#else
|
#else
|
||||||
#define IP_NAPT 0
|
#define IP_NAPT 0
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user