svn commit: r318789 - head/sys/contrib/ipfilter/netinet
Cy Schubert
cy at FreeBSD.org
Wed May 24 14:36:53 UTC 2017
Author: cy
Date: Wed May 24 14:36:51 2017
New Revision: 318789
URL: https://svnweb.freebsd.org/changeset/base/318789
Log:
Ifdef out a redundant if statement when LARGE_NAT is disabled.
MFC after: 1 week
Modified:
head/sys/contrib/ipfilter/netinet/ip_nat.c
Modified: head/sys/contrib/ipfilter/netinet/ip_nat.c
==============================================================================
--- head/sys/contrib/ipfilter/netinet/ip_nat.c Wed May 24 14:24:47 2017 (r318788)
+++ head/sys/contrib/ipfilter/netinet/ip_nat.c Wed May 24 14:36:51 2017 (r318789)
@@ -497,7 +497,9 @@ 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)
More information about the svn-src-head
mailing list