feat: Added option to enable or disable Port mapping in NAPT

pull/12330/head
Abhik Roy 2022-12-16 02:51:13 +05:30
rodzic 3b748a6cb7
commit 4940cfaa88
3 zmienionych plików z 15 dodań i 1 usunięć

Wyświetl plik

@ -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

Wyświetl plik

@ -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