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:
parent
5db5bd5f39
commit
63167eb48c
2
sbin/pfctl/tests/files/pf1010.in
Normal file
2
sbin/pfctl/tests/files/pf1010.in
Normal 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
|
2
sbin/pfctl/tests/files/pf1010.ok
Normal file
2
sbin/pfctl/tests/files/pf1010.ok
Normal 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
|
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user