git: 7bf5f682c073 - main - Improve the pf nat exhaustion test by checking the reply from the echo server
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 06 Oct 2023 15:22:01 UTC
The branch main has been updated by brd: URL: https://cgit.FreeBSD.org/src/commit/?id=7bf5f682c073fe271b159964f8f17eb2ac8590b3 commit 7bf5f682c073fe271b159964f8f17eb2ac8590b3 Author: Brad Davis <brd@FreeBSD.org> AuthorDate: 2023-10-06 15:19:51 +0000 Commit: Brad Davis <brd@FreeBSD.org> CommitDate: 2023-10-06 15:19:51 +0000 Improve the pf nat exhaustion test by checking the reply from the echo server Event: Oslo Hackathon Approved by: kp --- tests/sys/netpfil/pf/nat.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/sys/netpfil/pf/nat.sh b/tests/sys/netpfil/pf/nat.sh index 4ceded782cfb..7cc0d8f35c96 100644 --- a/tests/sys/netpfil/pf/nat.sh +++ b/tests/sys/netpfil/pf/nat.sh @@ -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 &