HomeFreeBSD

MFC 344f1083e128d8d41ca31853dac513ca3efd9d1f:

Description

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)

Details

Provenance
cyAuthored on Feb 5 2021, 2:26 PM
Parents
rG5c32dfaaa1a0: MFC 10990cb46027b4cc4339540b1217117863b2cd15:
Branches
Unknown
Tags
Unknown