git: c4c0c782f709 - stable/13 - pfctl tests: test case for the POM_STICKYADDRESS fix
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 22 Aug 2022 07:21:07 UTC
The branch stable/13 has been updated by kp: URL: https://cgit.FreeBSD.org/src/commit/?id=c4c0c782f7097bc7d3c893641eb60004ba6bf429 commit c4c0c782f7097bc7d3c893641eb60004ba6bf429 Author: Kristof Provost <kp@FreeBSD.org> AuthorDate: 2022-08-08 07:30:42 +0000 Commit: Kristof Provost <kp@FreeBSD.org> 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")