Improve the pf nat exhaustion test by checking the reply from the echo server

Event:	Oslo Hackathon
Approved by:	kp
This commit is contained in:
Brad Davis 2023-10-06 09:19:51 -06:00
parent d6ae056e9d
commit 7bf5f682c0

View File

@ -61,8 +61,8 @@ exhaust_body()
# Sanity check
atf_check -s exit:0 -o ignore ping -c 3 198.51.100.2
echo "foo" | nc -N 198.51.100.2 7
echo "foo" | nc -N 198.51.100.2 7
atf_check -s exit:0 -o match:foo* echo "foo" | nc -N 198.51.100.2 7
atf_check -s exit:0 -o match:foo* echo "foo" | nc -N 198.51.100.2 7
# This one will fail, but that's expected
echo "foo" | nc -N 198.51.100.2 7 &