pfctl tests: Ethernet rule parsing tests

A few basic test cases for Ethernet rule parsing.

Sponsored by:	Rubicon Communications, LLC ("Netgate")
This commit is contained in:
Kristof Provost 2022-01-21 16:48:03 +01:00
parent c32cd18055
commit e5349a2909
7 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1 @@
ether block out on igb0 to ! 00:01:02:03:04:05

View File

@ -0,0 +1 @@
ether block out on igb0 to ! 00:01:02:03:04:05

View File

@ -0,0 +1 @@
ether block out on igb0 to 00:01:02:03:04:05/24

View File

@ -0,0 +1 @@
ether block out on igb0 to 00:01:02:03:04:05/24

View File

@ -0,0 +1 @@
ether block out on igb0 to 00:01:02:03:04:05&ff:ff:ff:00:00:ff

View File

@ -0,0 +1 @@
ether block out on igb0 to 00:01:02:03:04:05&ff:ff:ff:00:00:ff

View File

@ -117,3 +117,6 @@ 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(1007, "Basic ethernet rule")
PFCTL_TEST(1008, "Ethernet rule with mask length")
PFCTL_TEST(1009, "Ethernet rule with mask")