mirror of
https://github.com/espressif/esp-lwip.git
synced 2026-10-05 07:17:38 +00:00
napt: restore to the initial state in deinit
This bug casue NAPT not work as normal after deinit then reinit
This commit is contained in:
@@ -176,6 +176,8 @@ static void
|
|||||||
ip_napt_deinit(void)
|
ip_napt_deinit(void)
|
||||||
{
|
{
|
||||||
napt_list = NO_IDX;
|
napt_list = NO_IDX;
|
||||||
|
napt_list_last = NO_IDX;
|
||||||
|
napt_free = 0;
|
||||||
ip_napt_max = 0;
|
ip_napt_max = 0;
|
||||||
#if IP_NAPT_PORTMAP
|
#if IP_NAPT_PORTMAP
|
||||||
ip_portmap_max = 0;
|
ip_portmap_max = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user