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")
This commit is contained in:
Kristof Provost 2022-08-08 09:30:42 +02:00
parent 5db5bd5f39
commit 63167eb48c
3 changed files with 5 additions and 0 deletions

View File

@ -0,0 +1,2 @@
pass inet proto icmp icmp-type {unreach}
pass in route-to (if0 127.0.0.1/8) sticky-address inet

View File

@ -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

View File

@ -120,3 +120,4 @@ PFCTL_TEST(1006, "pfctl crashes with certain fairq configurations")
PFCTL_TEST(1007, "Basic ethernet rule")
PFCTL_TEST(1008, "Ethernet rule with mask length")
PFCTL_TEST(1009, "Ethernet rule with mask")
PFCTL_TEST(1010, "POM_STICKYADDRESS test")