Date: Wed, 24 May 2017 14:36:52 +0000 (UTC) From: Cy Schubert <cy@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r318789 - head/sys/contrib/ipfilter/netinet Message-ID: <201705241436.v4OEaq6k057610@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201705241436.v4OEaq6k057610>