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:
Li Bo
2023-06-15 21:26:24 +08:00
committed by Abhik Roy
parent d65ad241a2
commit 5c4f899f8e
+2
View File
@@ -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;