diff options
author | Ana Rey <anarey@gmail.com> | 2014-09-18 12:39:19 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2014-09-18 12:52:44 +0200 |
commit | cb056ce37f10875f4eecccbc965223501fa27ce1 (patch) | |
tree | 2c3ac1c05e27bb74c1a25a772d4bded98bfbdf31 /tests/regression/arp/arp.t | |
parent | 4ff6b4c108dd2db4483c00643524fd95cd8237cd (diff) |
tests: Add arp folder with test files.
"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@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests/regression/arp/arp.t')
-rw-r--r-- | tests/regression/arp/arp.t | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/tests/regression/arp/arp.t b/tests/regression/arp/arp.t new file mode 100644 index 00000000..797e394b --- /dev/null +++ b/tests/regression/arp/arp.t @@ -0,0 +1,53 @@ +*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 +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 +- 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 +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 |