Revert r318789. It causes hanging NAT tcp sessions.

This commit is contained in:
cy 2017-05-29 07:15:28 +00:00
parent 6f5fc16bf5
commit c3ddfd657f

View File

@ -497,9 +497,7 @@ ipf_nat_soft_init(softc, arg)
softn->ipf_nat_pending.ifq_next = NULL;
for (i = 0, tq = softn->ipf_nat_tcptq; i < IPF_TCP_NSTATES; i++, tq++) {
#ifdef LARGE_NAT
if (tq->ifq_ttl < softn->ipf_nat_deficmpage)
#endif
tq->ifq_ttl = softn->ipf_nat_deficmpage;
#ifdef LARGE_NAT
else if (tq->ifq_ttl > softn->ipf_nat_defage)