The branch main has been updated by kp:

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

commit f5dba673345e2bbc63df057976d9296cb735f96f
Author:     Kristof Provost <k...@freebsd.org>
AuthorDate: 2025-07-12 15:41:10 +0000
Commit:     Kristof Provost <k...@freebsd.org>
CommitDate: 2025-07-12 16:29:27 +0000

    pf tests: fix anchor:nat test
    
    Don't assume that the epair we created is epair0.
    
    Event:  Berlin 2025 Hackathon
---
 tests/sys/netpfil/pf/anchor.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/sys/netpfil/pf/anchor.sh b/tests/sys/netpfil/pf/anchor.sh
index 4692c06142df..64ca84b34c3d 100644
--- a/tests/sys/netpfil/pf/anchor.sh
+++ b/tests/sys/netpfil/pf/anchor.sh
@@ -350,9 +350,9 @@ nat_body()
        jexec alcatraz pfctl -sn -a "foo/bar"
        jexec alcatraz pfctl -sn -a "foo/baz"
 
-       atf_check -s exit:0 -o match:"nat log on epair0a inet from 192.0.2.0/24 
to any port = domain -> 192.0.2.1" \
+       atf_check -s exit:0 -o match:"nat log on ${epair}a inet from 
192.0.2.0/24 to any port = domain -> 192.0.2.1" \
            jexec alcatraz pfctl -sn -a "*"
-       atf_check -s exit:0 -o match:"rdr on epair0a inet proto tcp from any to 
any port = echo -> 127.0.0.1 port 7" \
+       atf_check -s exit:0 -o match:"rdr on ${epair}a inet proto tcp from any 
to any port = echo -> 127.0.0.1 port 7" \
            jexec alcatraz pfctl -sn -a "*"
 }
 

Reply via email to