From 6416683acc5b37766b2de35fa91b650029276cde Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Neira=20Ayuso?= Date: Tue, 20 Aug 2013 17:58:56 +0200 Subject: tests: rule: add json parsing support Test the functions for parsing rules in JSON. Signed-off-by: Alvaro Neira Ayuso --- tests/jsonfiles/53-rule-real.json | 1 + 1 file changed, 1 insertion(+) create mode 100644 tests/jsonfiles/53-rule-real.json (limited to 'tests/jsonfiles/53-rule-real.json') diff --git a/tests/jsonfiles/53-rule-real.json b/tests/jsonfiles/53-rule-real.json new file mode 100644 index 0000000..2ba527c --- /dev/null +++ b/tests/jsonfiles/53-rule-real.json @@ -0,0 +1 @@ +{ "rule": { "family" : "ip", "table" : "filter", "chain" : "output", "handle" : 53,"flags" : 0, "expr" : [ { "type" : "meta", "dreg" : 1, "key" : "oifname"}, { "type" : "cmp", "sreg" : 1, "op" : "eq", "cmpdata" : {"data_reg": { "type" : "value", "len" : 16, "data0" : "0x00000000", "data1" : "0x00000000", "data2" : "0x65000000", "data3" : "0x00306874"}}}, { "type" : "counter", "pkts" : 0, "bytes" : 0}]}} -- cgit v1.2.3