From nobody Mon Aug 22 07:21:07 2022 X-Original-To: dev-commits-src-all@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 4MB3gR5wVnz4b49J; Mon, 22 Aug 2022 07:21:07 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MB3gR3855z3PJp; Mon, 22 Aug 2022 07:21:07 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661152867; 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=GcuYhu3WgbzZOOpY+kkYuJenYt0IIRpSpGht29DkntI=; b=JQLpaN1pyES3sF01wn6KgHYRkgs47Mmj7ySmZOoWX4KiepfPtWgwvClMZHqVP2heTL3tUa KGipaXxnHYy95K5b4LfgnwaOPBZGR4KFLWhw3SVB+5EZamwcUnYlKNVB2W1QV4HhKriw+R OaFx/+Kb9wzerHJcGI+TGJZixfvCoKANmF+BCEk2QjEW8WK/cLs/Ja5R0xty4W+sBJF6rr Wnoj7jradTVdczrN6IdvbVAS9FaI0JWFBDZDZnKV4HMqWQeXDJ3SAUDaESpS6ny7MxssMW Urk4a2tQc3fHJWNvee0aEo8zlVp8q5VLWbLQJ1YVjh+yDLd+BU/pvSiglCDN4Q== 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 4MB3gR2CT8zhnL; Mon, 22 Aug 2022 07:21:07 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 27M7L7OY088282; Mon, 22 Aug 2022 07:21:07 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 27M7L7w8088281; Mon, 22 Aug 2022 07:21:07 GMT (envelope-from git) Date: Mon, 22 Aug 2022 07:21:07 GMT Message-Id: <202208220721.27M7L7w8088281@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Kristof Provost Subject: git: c4c0c782f709 - stable/13 - pfctl tests: test case for the POM_STICKYADDRESS fix List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@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/stable/13 X-Git-Reftype: branch X-Git-Commit: c4c0c782f7097bc7d3c893641eb60004ba6bf429 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661152867; 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=GcuYhu3WgbzZOOpY+kkYuJenYt0IIRpSpGht29DkntI=; b=uf2V6kGFNLGNI82GaMdKsyQm0CZiejRbLIU8uJIUPEsMxMf3HIyYbkzwFo8SG9uDgGuJeq +cwjD09jQ65ICWBTSs5qwllnNY+zLDk3ZXsPrO3StWSDOWRNQtNQAV+NKUILwmrUkPtvTg 7i/HYvaW7qw7BquyByHxJYvqvJdXr9lFGtryncICWWtij8XINXrjkzr8wOW8p4/dBPzK+G G9hwxhRu9e+VNUM7AyVHYuX84gLvaiTEWFFYedU7PhwC0graMwBkQiFrlbYfnwRrNuCRvD CVxU9X4W+TWMcnYgqxiNJIykhnPVZ5VcA4hHhYN8vQBxbtRYDv6vbTJ7t24JWw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1661152867; a=rsa-sha256; cv=none; b=BGczN5sfztLR6SRToZE0Zf8ZKQ2tXJ1ZA7PEcwMWLiHIkSFOsC41438FAGhTmDSFh45Zq/ ln/JYtJVVWBTUqu9tBoBwbLbR2Gf9Pm7mEH6oREln7Q+xH3UkOIyDd6GDSn+yw1782z9YV /1slPs8Qf1U8oxTsqoodmgd8YGrqcfGx3OshEuQrzyctbB3Fbwz4Q8xNWYIs+JJrdyqTCL 9pv4o+0rWvE59p3lnXEsh8Fc6eJfchkr+4OkY3ZakjjVVaQA0dgrCp/wSb+K0lE/W44joE h9YqxG2B5thlRwSMUH8PWlG2HLwyChLz3SGAfN2rO2IFcg0kIJu3qwtL8WHvPg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by kp: URL: https://cgit.FreeBSD.org/src/commit/?id=c4c0c782f7097bc7d3c893641eb60004ba6bf429 commit c4c0c782f7097bc7d3c893641eb60004ba6bf429 Author: Kristof Provost AuthorDate: 2022-08-08 07:30:42 +0000 Commit: Kristof Provost CommitDate: 2022-08-22 06:55:58 +0000 pfctl tests: test case for the POM_STICKYADDRESS fix In 1e73fbd8b we fixed an issue with POM_STICKYADDRESS being checked in the wrong struct. Add a basic test case for this fix. MFC after: 2 weeks Sponsored by: Rubicon Communications, LLC ("Netgate") (cherry picked from commit 63167eb48c9f275384bae20e9b432ad68f44ff42) --- sbin/pfctl/tests/files/pf1010.in | 2 ++ sbin/pfctl/tests/files/pf1010.ok | 2 ++ sbin/pfctl/tests/pfctl_test_list.inc | 1 + 3 files changed, 5 insertions(+) diff --git a/sbin/pfctl/tests/files/pf1010.in b/sbin/pfctl/tests/files/pf1010.in new file mode 100644 index 000000000000..2baf4dc360af --- /dev/null +++ b/sbin/pfctl/tests/files/pf1010.in @@ -0,0 +1,2 @@ +pass inet proto icmp icmp-type {unreach} +pass in route-to (if0 127.0.0.1/8) sticky-address inet diff --git a/sbin/pfctl/tests/files/pf1010.ok b/sbin/pfctl/tests/files/pf1010.ok new file mode 100644 index 000000000000..b960dbfc50b8 --- /dev/null +++ b/sbin/pfctl/tests/files/pf1010.ok @@ -0,0 +1,2 @@ +pass inet proto icmp all icmp-type unreach keep state +pass in route-to (if0 127.0.0.0/8) sticky-address inet all flags S/SA keep state diff --git a/sbin/pfctl/tests/pfctl_test_list.inc b/sbin/pfctl/tests/pfctl_test_list.inc index 060a6019d05c..3c9ecca7ed9b 100644 --- a/sbin/pfctl/tests/pfctl_test_list.inc +++ b/sbin/pfctl/tests/pfctl_test_list.inc @@ -117,3 +117,4 @@ PFCTL_TEST(1003, "ALTQ") PFCTL_TEST(1004, "ALTQ with Codel") PFCTL_TEST(1005, "PR 231323") PFCTL_TEST(1006, "pfctl crashes with certain fairq configurations") +PFCTL_TEST(1010, "POM_STICKYADDRESS test")