summaryrefslogtreecommitdiffstats
path: root/extensions/libebt_arp.t
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2023-11-28 14:16:03 +0100
committerPhil Sutter <phil@nwl.cc>2024-01-10 16:07:31 +0100
commit1c21ae4ab5f0f74bbe67f3f3ab5724cf991a8d91 (patch)
tree42f6b175ea6356f93642ceba6e9cf11fc7af6a46 /extensions/libebt_arp.t
parent221f35690948d0fc17675cb76e14fcc6d57f3555 (diff)
extensions: libebt_arp: Use guided option parser
Diffstat (limited to 'extensions/libebt_arp.t')
-rw-r--r--extensions/libebt_arp.t7
1 files changed, 7 insertions, 0 deletions
diff --git a/extensions/libebt_arp.t b/extensions/libebt_arp.t
index 96fbce90..c8e874e8 100644
--- a/extensions/libebt_arp.t
+++ b/extensions/libebt_arp.t
@@ -1,7 +1,11 @@
:INPUT,FORWARD,OUTPUT
-p ARP --arp-op Request;=;OK
+-p ARP --arp-op ! Request;=;OK
+-p ARP --arp-htype Ethernet;-p ARP --arp-htype 1;OK
+-p ARP --arp-htype 1;=;OK
-p ARP --arp-htype ! 1;=;OK
-p ARP --arp-ptype 0x2;=;OK
+-p ARP --arp-ptype ! 0x2;=;OK
-p ARP --arp-ip-src 1.2.3.4;=;OK
-p ARP ! --arp-ip-dst 1.2.3.4;-p ARP --arp-ip-dst ! 1.2.3.4 -j CONTINUE;OK
-p ARP --arp-ip-src ! 0.0.0.0;=;OK
@@ -10,6 +14,9 @@
-p ARP --arp-ip-src ! 1.2.3.4/255.255.255.0;-p ARP --arp-ip-src ! 1.2.3.0/24;OK
-p ARP --arp-ip-src ! 1.2.3.4/255.0.255.255;-p ARP --arp-ip-src ! 1.0.3.4/255.0.255.255;OK
-p ARP --arp-mac-src 00:de:ad:be:ef:00;=;OK
+-p ARP --arp-mac-src ! 00:de:ad:be:ef:00;=;OK
-p ARP --arp-mac-dst de:ad:be:ef:00:00/ff:ff:ff:ff:00:00;=;OK
+-p ARP --arp-mac-dst ! de:ad:be:ef:00:00/ff:ff:ff:ff:00:00;=;OK
-p ARP --arp-gratuitous;=;OK
+-p ARP ! --arp-gratuitous;=;OK
--arp-htype 1;=;FAIL