HomeFreeBSD

The bucket index is subtracted by one at lines 2304 and 2314. When 0 it

Description

The bucket index is subtracted by one at lines 2304 and 2314. When 0 it
becomes -1, except these are unsigned integers, so they become very large
numbers. Thus are always larger than the maximum bucket; the hash table
insertion fails causing NAT to fail.

This commit ensures that if the index is already zero it is not reduced
prior to insertion into the hash table.

PR: 208566

Details

Provenance
cyAuthored on
Parents
rS338046: Add handy DTrace probes useful in diagnosing NAT issues. DTrace probes
Branches
Unknown
Tags
Unknown