change(lwip): Remove 'experimental' from NAPT in kconfig, update lwIP doc

This commit is contained in:
Abhik Roy 2023-12-12 00:55:58 +11:00
parent bb1bc2afac
commit 35fe20da84
2 changed files with 10 additions and 2 deletions

View File

@ -248,14 +248,14 @@ menu "LWIP"
Enabling this option allows packets forwarding across multiple interfaces.
config LWIP_IPV4_NAPT
bool "Enable NAT (new/experimental)"
bool "Enable NAT"
depends on LWIP_IP_FORWARD
default n
help
Enabling this option allows Network Address and Port Translation.
config LWIP_IPV4_NAPT_PORTMAP
bool "Enable NAT Port Mapping (new/experimental)"
bool "Enable NAT Port Mapping"
depends on LWIP_IPV4_NAPT
default y
help

View File

@ -419,6 +419,14 @@ IP Layer Features
- IPV4-mapped IPV6 addresses are supported
NAPT and Port Forwarding
++++++++++++++++++++++++
IPV4 network address port translation (NAPT) and port forwarding are supported. However, the enabling of NAPT is limited to a single interface.
- To use NAPT for forwarding packets between two interfaces, it needs to be enabled on the interface connecting to the target network. For example, to enable internet access for Ethernet traffic through the WiFi interface, NAPT must be enabled on the Ethernet interface.
- Usage of NAPT is demonstrated in :example:`network/vlan_support`.
.. _lwip-custom-hooks:
Customized lwIP Hooks