Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 May 2023 20:12:31 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: 0d574d8ba8b2 - main - pfsync tests: check for the correct IP address
Message-ID:  <202305182012.34IKCVM0032309@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=0d574d8ba8b244f40c1484123c5042f49ac642b8

commit 0d574d8ba8b244f40c1484123c5042f49ac642b8
Author:     Kristof Provost <kp@FreeBSD.org>
AuthorDate: 2023-05-18 19:37:48 +0000
Commit:     Kristof Provost <kp@FreeBSD.org>
CommitDate: 2023-05-18 20:12:07 +0000

    pfsync tests: check for the correct IP address
    
    When checking if the state synced over we should look for
    198.51.100.254, not 198.51.100.2. The test worked because the incorrect
    address is a substring of the correct one, but we should fix it anyway.
    
    Reported by:    Naman Sood <naman@freebsdfoundation.org>
    MFC after:      1 week
---
 tests/sys/netpfil/pf/pfsync.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/sys/netpfil/pf/pfsync.sh b/tests/sys/netpfil/pf/pfsync.sh
index 8d41b16d9116..8028ba9790ba 100644
--- a/tests/sys/netpfil/pf/pfsync.sh
+++ b/tests/sys/netpfil/pf/pfsync.sh
@@ -87,7 +87,7 @@ common_body()
 	sleep 2
 
 	if ! jexec two pfctl -s states | grep icmp | grep 198.51.100.1 | \
-	    grep 198.51.100.2 ; then
+	    grep 198.51.100.254 ; then
 		atf_fail "state not found on synced host"
 	fi
 }



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