From nobody Sat Jul 12 16:29:40 2025 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4bfYvT13r6z60pm7; Sat, 12 Jul 2025 16:29:41 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4bfYvS6pvTz3T33; Sat, 12 Jul 2025 16:29:40 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1752337781; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=02TWLk7lFTZArWjXnLtAYeiM0yHS6rxFbGGiarBzLUI=; b=gNzg8HrTop/TXUjuTYmJ4iy09B8MB6P5wOzOUhHAHxhh1YoP80Hjfq46wqAiQHLbcYw7Fm Jerq7PzHZUmmj3PmpLrma2328gsLBJHSVKyUjvku8RmpseBtRhXEvxQjKStPb6GLX87Squ /cZayvfuPba9Lv3FFFbNlCc+Cooa14O7FW1r68B9Kr17hATW7BHJ3GhTsnMbdVkK5xzKak 1MjnCsYPUt4H6wxv9xixSiTRdZSep9u9Cjk27af9KVU30gPOBpb1YACJymFC56elKdbUFG NRWP2XbKE5IMaMD8TRkpc02AOsEfZDh6DNUht9oFEIB91RoBxaWNZkBOWE87ng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1752337781; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=02TWLk7lFTZArWjXnLtAYeiM0yHS6rxFbGGiarBzLUI=; b=hlpkFX38w4w1vIW2i6FizcnhVHyN/uxJYR0b79RM2JDnobqSVSIYxAfw+nFtpGFsfzil6n wk4npDCtE1B42//vY0zcR9oJh7P2UJms6UVk8ptLGv8etVl7pVmaxFStfLUNGR5ZhWuuVb 1xuYKuUqr3hirB3mOsusAOAFB/JUyM2G/ldfqIeXicH8E5LblpbTogjOY7o2UyOKzR29SS FHvuofktbdVYK6NyzxmjuhXZ2R/yINCLB9UMTiRcUodGF6vE2Y62Gx2y+XM06Jhybf5aCa HC5Pc3y9omuh5dcvqiOFmTfHFEXhjQJQIuToDFp03AyDSXR0c2svCDRv4UD9QQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1752337781; a=rsa-sha256; cv=none; b=V2WRpWP8VIcOkKecy5qfB6I7Wf+v3mSaf/jbWOQQHKZsGEYn1bwMjCqTIeb0jSTvWrVq/G BnTCi+SpWMJML5BojGErqz+bYU66P80zyDt+wn5eZV6tyh49DobpU/QDVme7OKMo7Vzg+m klO5no0oA2wkXrTmb9z6AJhyScOfU5bm5a7QTIHJmYgCAE+KWsht2cnD0qDWKrhwmiy1qJ F31WZ1s4ZuoJRBAsBvY8QAQ59ZDSKUD6dTblMk28czhH60CKabVeHhwQV94iAJQsF8Cbee U9+j0f3EGiVnn8PvrnUZLqxr8I7vY4VntXuxLrL+WyS+v+6e1eWIbsOEmN95MA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4bfYvS6Fg3zVfn; Sat, 12 Jul 2025 16:29:40 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 56CGTeYJ009782; Sat, 12 Jul 2025 16:29:40 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 56CGTewA009779; Sat, 12 Jul 2025 16:29:40 GMT (envelope-from git) Date: Sat, 12 Jul 2025 16:29:40 GMT Message-Id: <202507121629.56CGTewA009779@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Kristof Provost Subject: git: f5dba673345e - main - pf tests: fix anchor:nat test List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: f5dba673345e2bbc63df057976d9296cb735f96f Auto-Submitted: auto-generated The branch main has been updated by kp: URL: https://cgit.FreeBSD.org/src/commit/?id=f5dba673345e2bbc63df057976d9296cb735f96f commit f5dba673345e2bbc63df057976d9296cb735f96f Author: Kristof Provost AuthorDate: 2025-07-12 15:41:10 +0000 Commit: Kristof Provost 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 "*" }