Skip to content

Commit

Permalink
pfctl tests: test case for the POM_STICKYADDRESS fix
Browse files Browse the repository at this point in the history
In 1e73fbd 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 63167eb)
  • Loading branch information
kprovost authored and fichtner committed Dec 13, 2022
1 parent 04994fa commit 5cb327e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sbin/pfctl/tests/files/pf1010.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
pass inet proto icmp icmp-type {unreach}
pass in route-to (if0 127.0.0.1/8) sticky-address inet
2 changes: 2 additions & 0 deletions sbin/pfctl/tests/files/pf1010.ok
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions sbin/pfctl/tests/pfctl_test_list.inc
Original file line number Diff line number Diff line change
Expand Up @@ -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")

0 comments on commit 5cb327e

Please sign in to comment.