Skip to content

Commit

Permalink
napt: restore to the initial state in deinit
Browse files Browse the repository at this point in the history
This bug casue NAPT not work as normal after deinit then reinit
  • Loading branch information
leeebo authored and espressif-abhikroy committed Sep 25, 2023
1 parent d65ad24 commit 5c4f899
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/ipv4/ip4_napt.c
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,8 @@ static void
ip_napt_deinit(void)
{
napt_list = NO_IDX;
napt_list_last = NO_IDX;
napt_free = 0;
ip_napt_max = 0;
#if IP_NAPT_PORTMAP
ip_portmap_max = 0;
Expand Down

0 comments on commit 5c4f899

Please sign in to comment.