mirror of https://github.com/RT-Thread/rt-thread
parent
5439580833
commit
0fc0ed1bb1
|
@ -370,12 +370,12 @@ ip_nat_reset_state(ip_nat_conf_t *cfg)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for (i = 0; i < LWIP_NAT_DEFAULT_STATE_TABLES_TCP; i++) {
|
for (i = 0; i < LWIP_NAT_DEFAULT_STATE_TABLES_TCP; i++) {
|
||||||
if(ip_nat_icmp_table[i].common.cfg == cfg) {
|
if(ip_nat_tcp_table[i].common.cfg == cfg) {
|
||||||
IPNAT_ENTRY_RESET(&ip_nat_tcp_table[i].common);
|
IPNAT_ENTRY_RESET(&ip_nat_tcp_table[i].common);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for (i = 0; i < LWIP_NAT_DEFAULT_STATE_TABLES_UDP; i++) {
|
for (i = 0; i < LWIP_NAT_DEFAULT_STATE_TABLES_UDP; i++) {
|
||||||
if(ip_nat_icmp_table[i].common.cfg == cfg) {
|
if(ip_nat_udp_table[i].common.cfg == cfg) {
|
||||||
IPNAT_ENTRY_RESET(&ip_nat_udp_table[i].common);
|
IPNAT_ENTRY_RESET(&ip_nat_udp_table[i].common);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue