summaryrefslogtreecommitdiffstats
path: root/tests/py/ip/ct.t
diff options
context:
space:
mode:
authorLiping Zhang <liping.zhang@spreadtrum.com>2016-09-22 22:34:52 +0800
committerPablo Neira Ayuso <pablo@netfilter.org>2016-10-17 18:27:05 +0200
commit2b1a0db97d40b1b9d9240ac0bb0cc771eb359516 (patch)
tree522a7fbfa067df4e7b1224bb0a97eb5f0d2eb070 /tests/py/ip/ct.t
parent3ed932917cc744b489bd2706a55a1778b0b50c0e (diff)
src: support ct l3proto/protocol without direction syntax
Acctually, ct l3proto and ct protocol are unrelated to direction, so it's unnecessary that we must specify dir if we want to use them. Now add support that we can match ct l3proto/protocol without direction: # nft add rule filter input ct l3proto ipv4 # nft add rule filter output ct protocol 17 Note: existing syntax is still preserved, so "ct reply l3proto ipv6" is still fine. Signed-off-by: Liping Zhang <liping.zhang@spreadtrum.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests/py/ip/ct.t')
-rw-r--r--tests/py/ip/ct.t8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/py/ip/ct.t b/tests/py/ip/ct.t
index 65f5d921..d0f16c51 100644
--- a/tests/py/ip/ct.t
+++ b/tests/py/ip/ct.t
@@ -13,11 +13,11 @@ ct reply saddr 192.168.1.0/24;ok
ct original daddr 192.168.1.0/24;ok
ct reply daddr 192.168.1.0/24;ok
-ct original l3proto ipv4;ok
-ct reply l3proto foobar;fail
+ct l3proto ipv4;ok
+ct l3proto foobar;fail
-ct original protocol 6 ct original proto-dst 22;ok
-ct original protocol 17 ct reply proto-src 53;ok
+ct protocol 6 ct original proto-dst 22;ok
+ct original protocol 17 ct reply proto-src 53;ok;ct protocol 17 ct reply proto-src 53
# wrong address family
ct reply daddr dead::beef;fail