summaryrefslogtreecommitdiff
path: root/tests/nfct/timeout/08gre
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2015-08-21 19:18:38 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2015-08-26 20:43:55 +0200
commitdd73ceecdbe87b6ecf9e96643cd5326e520d7a1c (patch)
treec4c3a7b933dde6bd9094abad606a9435256e383d /tests/nfct/timeout/08gre
parent1c36d487cda8d1bed799b4daa28c44aa7198bb31 (diff)
downloadconntrack-tools-dd73ceecdbe87b6ecf9e96643cd5326e520d7a1c.tar.gz
conntrack-tools-dd73ceecdbe87b6ecf9e96643cd5326e520d7a1c.zip
nfct: Update syntax to specify command before subsystem
This patch gets the nfct syntax in sync with nft so it looks like this: nfct <add|delete|...> object ... instead of: nfct object <add|delete|...> ... This patch retains backward compatibility so you can still use the old syntax. The manpage and tests have been also updated to promote the adoption of this syntax. We should have little existing clients of this tool as we can only use this to configure the cttimeout and cthelper infrastructures. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests/nfct/timeout/08gre')
-rw-r--r--tests/nfct/timeout/08gre16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/nfct/timeout/08gre b/tests/nfct/timeout/08gre
index 7ef4bdb..709b943 100644
--- a/tests/nfct/timeout/08gre
+++ b/tests/nfct/timeout/08gre
@@ -1,16 +1,16 @@
# add policy object `test'
-nfct timeout add test inet gre unreplied 10 ; OK
+nfct add timeout test inet gre unreplied 10 ; OK
# get policy object `test'
-nfct timeout get test ; OK
+nfct get timeout test ; OK
# delete policy object `test'
-nfct timeout delete test ; OK
+nfct delete timeout test ; OK
# get unexistent policy object `dummy'
-nfct timeout get test ; BAD
+nfct get timeout test ; BAD
# delete policy object `test', however, it does not exists anymore
-nfct timeout delete test ; BAD
+nfct delete timeout test ; BAD
# add policy object `test'
-nfct timeout add test inet gre unreplied 1 replied 2 ; OK
+nfct add timeout test inet gre unreplied 1 replied 2 ; OK
# get policy object `test'
-nfct timeout get test ; OK
+nfct get timeout test ; OK
# delete policy object `test'
-nfct timeout delete test ; OK
+nfct delete timeout test ; OK