]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC 344f1083e128d8d41ca31853dac513ca3efd9d1f:
authorCy Schubert <cy@FreeBSD.org>
Fri, 5 Feb 2021 14:26:04 +0000 (06:26 -0800)
committerCy Schubert <cy@FreeBSD.org>
Tue, 16 Feb 2021 00:40:49 +0000 (16:40 -0800)
commit46f4eb3f1eb3ec582331941a173abad904ba198d
treee03461ec3b2da6c13f3130104eb2c58edd0bc7f0
parent98cf94afab4dc1e259c6d12e417ce9f7bda2d447
MFC 344f1083e128d8d41ca31853dac513ca3efd9d1f:

ipfilter: Use the softn (NAT softc) host map size in ip_nat6 calculation.

The ipfilter NAT table host map size is a tunable that defaults to
a macro value defined at build time. HOSTMAP_SIZE is saved in softn
(the ipnat softc) at initialization. It can be tuned (changed) at runtime
using the ipf -T command. If the hostmap_size tunable is adjusted the
calculation to determine where to put new entries in the table was
incorrect. Use the tunable in the NAT softc instead of the static build
time value.

(cherry picked from commit 344f1083e128d8d41ca31853dac513ca3efd9d1f)
sys/contrib/ipfilter/netinet/ip_nat6.c