diff options
author | Ana Rey <anarey@gmail.com> | 2014-09-18 12:39:18 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2014-09-18 12:52:44 +0200 |
commit | 4ff6b4c108dd2db4483c00643524fd95cd8237cd (patch) | |
tree | 7c863e10532856f8e81dbcfe003c89f37999fd9d /tests/regression/inet/comp.t | |
parent | a4253ba1f72face3f3d76cb3559c1ffb07625388 (diff) |
tests: Add inet folder with test files.
"inet" folder contains the test files that are executed in ipv4, ipv6
and inet family of 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/inet/comp.t')
-rw-r--r-- | tests/regression/inet/comp.t | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/tests/regression/inet/comp.t b/tests/regression/inet/comp.t new file mode 100644 index 00000000..32db32b2 --- /dev/null +++ b/tests/regression/inet/comp.t @@ -0,0 +1,31 @@ +*ip;test-ip4 +*ip6;test-ip6 +*inet;test-inet + +:input;type filter hook input priority 0 + +# BUG: Do no list table. +- comp nexthdr esp;ok;comp nexthdr 50 +comp nexthdr != esp;ok + +- comp nexthdr {esp, ah, comp, udp, udplite, tcp, tcp, dccp, sctp};ok +# comp flags ## 8-bit field. Reserved for future use. MUST be set to zero. + +# Bug comp flags: to list. List the decimal value. +comp flags 0x00;ok +comp flags != 0x23;ok +comp flags 0x33-0x45;ok +comp flags != 0x33-0x45;ok +comp flags {0x33, 0x55, 0x67, 0x88};ok +- comp flags != {0x33, 0x55, 0x67, 0x88};ok +comp flags { 0x33-0x55};ok +- comp flags != { 0x33-0x55};ok + +comp cpi 22;ok +comp cpi != 233;ok +comp cpi 33-45;ok;comp cpi >= 33 comp cpi <= 45 +comp cpi != 33-45;ok;comp cpi < 33 comp cpi > 45 +comp cpi {33, 55, 67, 88};ok +- comp cpi != {33, 55, 67, 88};ok +comp cpi { 33-55};ok +- comp cpi != { 33-55};ok |