FreeBSD/src 9bfe204 (r341999)tests/sys/netpfil/pf nat.sh Makefile

pf tests: NAT exhaustion test

It's been reported that pf doesn't handle running out of available ports
for NAT correctly. It freezes until a state expires and it can find a
free port.
Test for this, by setting up a situation where only two ports are
available for NAT and then attempting to create three connections.

If successful the third connection will fail immediately. In an
incorrect case the connection attempt will freeze, also freezing all
interaction with pf through pfctl and trigger timeout.

PR:             233867
MFC after:      2 weeks
DeltaFile
+64-0tests/sys/netpfil/pf/nat.sh
+1-0tests/sys/netpfil/pf/Makefile
+65-02 files

UnifiedSplitRaw