summaryrefslogtreecommitdiffstats
path: root/tests/jsonfiles/57-rule-real.json
diff options
context:
space:
mode:
authorÁlvaro Neira Ayuso <alvaroneay@gmail.com>2013-08-20 17:58:56 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2013-08-20 21:01:15 +0200
commit6416683acc5b37766b2de35fa91b650029276cde (patch)
treee087150108e42f8bc59b173052d58c595e06f233 /tests/jsonfiles/57-rule-real.json
parentc83c53a26de25c1e2900f7841647cec3b57c7438 (diff)
tests: rule: add json parsing support
Test the functions for parsing rules in JSON. Signed-off-by: Alvaro Neira Ayuso <alvaroneay@gmail.com>
Diffstat (limited to 'tests/jsonfiles/57-rule-real.json')
-rw-r--r--tests/jsonfiles/57-rule-real.json1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/jsonfiles/57-rule-real.json b/tests/jsonfiles/57-rule-real.json
new file mode 100644
index 0000000..9c0a1eb
--- /dev/null
+++ b/tests/jsonfiles/57-rule-real.json
@@ -0,0 +1 @@
+{ "rule": { "family" : "ip", "table" : "filter", "chain" : "output", "handle" : 57,"flags" : 0, "expr" : [ { "type" : "meta", "dreg" : 1, "key" : "len"}, { "type" : "cmp", "sreg" : 1, "op" : "eq", "cmpdata" : {"data_reg": { "type" : "value", "len" : 4, "data0" : "0x000003e8"}}}, { "type" : "counter", "pkts" : 0, "bytes" : 0}]}}