[PATCH 5/6] [nft] tests: Add arp folder with test files.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



"arp" folder contains the test files that are executed in arp tables.

These test files are executed with nft-tests.py

Signed-off-by: Ana Rey <anarey@xxxxxxxxx>
---
 tests/arp/arp.t    | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 tests/arp/chains.t |  5 +++++
 2 files changed, 63 insertions(+)
 create mode 100644 tests/arp/arp.t
 create mode 100644 tests/arp/chains.t

diff --git a/tests/arp/arp.t b/tests/arp/arp.t
new file mode 100644
index 0000000..e7f3cf7
--- /dev/null
+++ b/tests/arp/arp.t
@@ -0,0 +1,58 @@
+*arp;test-arp
+# filter chains available are: input, output, forward
+:input;type filter hook input priority 0
+
+arp htype 1;ok
+arp htype != 1;ok
+# http://www.iana.org/assignments/arp-parameters/arp-parameters.xhtml
+arp htype 22;ok
+arp htype != 233;ok
+arp htype 33-45;ok;arp htype >= 33 arp htype <= 45
+arp htype != 33-45;ok;arp htype < 33 arp htype > 45
+arp htype { 33, 55, 67, 88};ok
+# Bug to list arp htype { 1280, 1024, 256 }
+-arp htype != { 33, 55, 67, 88};ok
+arp htype { 33-55};ok
+-arp htype != { 33-55};ok
+
+arp ptype 0x0800;ok
+
+arp hlen 22;ok
+arp hlen != 233;ok
+arp hlen 33-45;ok;arp hlen >= 33 arp hlen <= 45
+arp hlen != 33-45;ok;arp hlen < 33 arp hlen > 45
+arp hlen { 33, 55, 67, 88};ok
+-arp hlen != { 33, 55, 67, 88};ok
+arp hlen { 33-55};ok
+-arp hlen != { 33-55};ok
+
+arp plen 22;ok
+arp plen != 233;ok
+arp plen 33-45;ok;arp plen >= 33 arp plen <= 45
+arp plen != 33-45;ok;arp plen < 33 arp plen > 45
+arp plen { 33, 55, 67, 88};ok
+-arp plen != { 33, 55, 67, 88};ok
+arp plen { 33-55};ok
+-arp plen != {33-55};ok
+
+
+arp operation {nak, inreply, inrequest, rreply, rrequest, reply, request};ok
+-arp operation != {nak, inreply, inrequest, rreply, rrequest, reply, request};ok
+# BUG to list arp operation { 1024, 2304, 768, 2048, 512, 2560, 256}
+
+arp operation request;ok
+arp operation reply;ok
+arp operation rrequest;ok
+arp operation rreply;ok
+arp operation inrequest;ok
+arp operation inreply;ok
+arp operation nak;ok
+arp operation reply;ok
+arp operation != request;ok
+arp operation != reply;ok
+arp operation != rrequest;ok
+arp operation != rreply;ok
+arp operation != inrequest;ok
+arp operation != inreply;ok
+arp operation != nak;ok
+arp operation != reply;ok
diff --git a/tests/arp/chains.t b/tests/arp/chains.t
new file mode 100644
index 0000000..6b0c042
--- /dev/null
+++ b/tests/arp/chains.t
@@ -0,0 +1,5 @@
+*arp;test-arp
+- filter chains available are: input, output, forward
+:input;type filter hook input priority 0
+:forward;type filter hook forward priority 0
+:output;type filter hook output priority 0
-- 
2.0.0

--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux