Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 Oct 2025 12:03:52 GMT
From:      Kristof Provost <kp@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 98c1bf371c5d - main - pf tests: make syncookie:loopback more robust
Message-ID:  <202510111203.59BC3qZL039941@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by kp:

URL: https://cgit.FreeBSD.org/src/commit/?id=98c1bf371c5dd613646f53fdc4796c366104f844

commit 98c1bf371c5dd613646f53fdc4796c366104f844
Author:     Kristof Provost <kp@FreeBSD.org>
AuthorDate: 2025-10-08 07:56:24 +0000
Commit:     Kristof Provost <kp@FreeBSD.org>
CommitDate: 2025-10-11 11:24:24 +0000

    pf tests: make syncookie:loopback more robust
    
    Give the background nc process a bit of time to start before we attempt to
    connect to it.
    
    Sponsored by:   Rubicon Communications, LLC ("Netgate")
---
 tests/sys/netpfil/pf/syncookie.sh | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tests/sys/netpfil/pf/syncookie.sh b/tests/sys/netpfil/pf/syncookie.sh
index fad90f3b2618..598ac17c67f5 100644
--- a/tests/sys/netpfil/pf/syncookie.sh
+++ b/tests/sys/netpfil/pf/syncookie.sh
@@ -253,6 +253,9 @@ Creativity, no.
 __EOF__
 	nc -l $addr $port >out &
 
+	# Give the background nc time to start
+	sleep 1
+
 	atf_check nc -N $addr $port < in
 
 	atf_check -o file:in cat out



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202510111203.59BC3qZL039941>