From nobody Wed Feb 05 20:07:17 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 4YpB920Wd3z5mKCy; Wed, 05 Feb 2025 20:07:18 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YpB9157zxz46K5; Wed, 05 Feb 2025 20:07:17 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1738786037; 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=nS/3/IrSso3VbF8KNIviOP4MzvsdwNso2h6U1pf6DF4=; b=PBEdrtOS/BECe1AMo2kvzl/92YlpwPhdCJMBNQlZIM6uquWbb6hhuVHBIf6w7jo+4DJuLI oijiIHEe48SJ2s0SMwOWNDCEfzTH68UGtkGpcOpTkjbmtq2E9/t7dgnGAdRQ5Q9EQZ8Su9 +B/dIoztzD9zRNZ71dpATbAVOwOsOB+3E6zwQDsI6JYGREqqC8C9iMwnyAVTYnwnWDOTCf HP15CWP5KnHzvo6v4fJXy344Iv4Cs6VYu4m+MqRWyRPSY6N8By6bUlut9oEiXNj/uNGLco fqBS9fSWBmZGgRe3Q9J45JnQwxXZmrUEfv4DIviyocLCHM1mL3zQiDwo4B5bWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1738786037; 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=nS/3/IrSso3VbF8KNIviOP4MzvsdwNso2h6U1pf6DF4=; b=r3hfLTO0NqjedQByNa9Ydn0wMAMbwh8KiimSN7AE65ATfFcvQf+HwSEjiI4Ll1z/l1T7fi AHc0W9L5Lc6GtFXhw8Qo80vO60B7ivOxA/hvxD7y4wb48wmfkKKXT0OZUEKVF5dyVNSKhp YJoUDlsU/cQvrSMB2TJ5lfiV4djmYd//mpcvi49i4RzvhphKROcs1EFAhbsuuzlMjR9K2M lm6OtQT6sSpI59PfUOhrrcvN5psBLoT92J7cyXDRjEfWrDeNZl6c74GqqRRB7x/YLJIcTA sDyOjlTnFBXrsElqj+2VHLWXMo3VSO9BsPpQ+3N3C/XY95SwPjcJdbymFAWpQw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1738786037; a=rsa-sha256; cv=none; b=cRBvAVdRsgPK/b3Px55fcQpXwJ8vylthKaGyV63XpsHG1uOQEN1KwcJo3y1iEF2pkH78d5 0dNz211q6TAvYEjzpkVEU1J6h33J47DnlJP5S7Ygj7mIi0XVAtrGCRqKST5t2jM/GprMZq JjB0bDJTWRkX1yBMPOqpQZefCXTqgHcCGVHLOijM86TY2Z0nAKEsXSEm3H6r5LxwT4GEBz k+xMpLr1MA1lOngnTKO7EQ5gdRUwKfH4daoSU+NbmLuXp7n/Vlf0wa6ZSpUcn57nzB5LlM 662Cg0OmG83LO8IShvMPmYdCYTIf4eBDQSGyPDK7BYV4ATNV90DBlWbBYltxPA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4YpB914fnqz164d; Wed, 05 Feb 2025 20:07:17 +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 515K7H02007885; Wed, 5 Feb 2025 20:07:17 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 515K7Hcl007882; Wed, 5 Feb 2025 20:07:17 GMT (envelope-from git) Date: Wed, 5 Feb 2025 20:07:17 GMT Message-Id: <202502052007.515K7Hcl007882@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: 0cd95355a509 - main - pf tests: extend set-tos 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: 0cd95355a509f26d4c207087830a3dc640229c4d Auto-Submitted: auto-generated The branch main has been updated by kp: URL: https://cgit.FreeBSD.org/src/commit/?id=0cd95355a509f26d4c207087830a3dc640229c4d commit 0cd95355a509f26d4c207087830a3dc640229c4d Author: Kristof Provost AuthorDate: 2025-02-05 08:22:40 +0000 Commit: Kristof Provost CommitDate: 2025-02-05 20:06:54 +0000 pf tests: extend set-tos test Verify that we can set-tos on pass rules, and that this still works even if a 'scrub' option is present on the pass rule. Sponsored by: Rubicon Communications, LLC ("Netgate") --- tests/sys/netpfil/pf/set_tos.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/tests/sys/netpfil/pf/set_tos.sh b/tests/sys/netpfil/pf/set_tos.sh index bfec61f0d221..1f7681feabaa 100644 --- a/tests/sys/netpfil/pf/set_tos.sh +++ b/tests/sys/netpfil/pf/set_tos.sh @@ -191,6 +191,22 @@ v6_body() --to 2001:db8:192::2 \ --replyif ${epair}a \ --expect-tc 0 + + # We can set tos on pass rules + pft_set_rules alcatraz "pass out set tos 13" + atf_check -s exit:0 -o ignore -e ignore ${common_dir}/pft_ping.py \ + --sendif ${epair}a \ + --to 2001:db8:192::2 \ + --replyif ${epair}a \ + --expect-tc 13 + + # And that still works with 'scrub' options too + pft_set_rules alcatraz "pass out set tos 14 scrub (min-ttl 64)" + atf_check -s exit:0 -o ignore -e ignore ${common_dir}/pft_ping.py \ + --sendif ${epair}a \ + --to 2001:db8:192::2 \ + --replyif ${epair}a \ + --expect-tc 14 } v6_cleanup()