summaryrefslogtreecommitdiffstats
path: root/tests/jsonfiles/21-rule-byteorder.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/21-rule-byteorder.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/21-rule-byteorder.json')
-rw-r--r--tests/jsonfiles/21-rule-byteorder.json1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/jsonfiles/21-rule-byteorder.json b/tests/jsonfiles/21-rule-byteorder.json
new file mode 100644
index 0000000..631ee51
--- /dev/null
+++ b/tests/jsonfiles/21-rule-byteorder.json
@@ -0,0 +1 @@
+{ "rule": { "family" : "ip", "table" : "filter", "chain" : "input", "handle" : 21,"flags" : 0, "expr" : [ { "type" : "byteorder", "sreg" : 3, "dreg" : 4, "op" : "hton", "len" : 4, "size" : 4}]}}