mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
feat: Added option to enable or disable Port mapping in NAPT
This commit is contained in:
parent
3b748a6cb7
commit
4940cfaa88
@ -227,6 +227,13 @@ menu "LWIP"
|
||||
help
|
||||
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
|
||||
bool "Enable LWIP statistics"
|
||||
default n
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit 7896c6cad020d17a986f7e850f603e084e319328
|
||||
Subproject commit 90009cc2b0b487ab12688778f5fffc27e9b2b8c3
|
@ -216,6 +216,13 @@ extern "C" {
|
||||
*/
|
||||
#ifdef CONFIG_LWIP_IPV4_NAPT
|
||||
#define IP_NAPT 1
|
||||
|
||||
#ifdef CONFIG_LWIP_IPV4_NAPT_PORTMAP
|
||||
#define IP_NAPT_PORTMAP 1
|
||||
#else
|
||||
#define IP_NAPT_PORTMAP 0
|
||||
#endif
|
||||
|
||||
#else
|
||||
#define IP_NAPT 0
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user