summaryrefslogtreecommitdiffstats
path: root/tests/jsonfiles
diff options
context:
space:
mode:
authorArturo Borrero <arturo.borrero.glez@gmail.com>2013-12-26 16:50:00 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2013-12-26 18:21:34 +0100
commit9cdef799414451258a62d088ba7cda6ff6035a88 (patch)
tree6c7661970bf0b7647faa568101acd14947ebc11e /tests/jsonfiles
parente18f8eb5430b36d5a33dbb85e746b2c68f6436bd (diff)
src: update meta expr
This patch adds userspace support for the meta expression in the set flavour. This expression indicates that the packet has to be set with a property, currently one of mark, priority or nftrace. Signed-off-by: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests/jsonfiles')
-rw-r--r--tests/jsonfiles/65-rule-meta-target.json1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/jsonfiles/65-rule-meta-target.json b/tests/jsonfiles/65-rule-meta-target.json
new file mode 100644
index 0000000..d058a1f
--- /dev/null
+++ b/tests/jsonfiles/65-rule-meta-target.json
@@ -0,0 +1 @@
+{"rule":{"family":"ip","table":"filter","chain":"output","handle":1,"expr":[{"type":"meta","key":"mark","sreg":1},{"type":"cmp","sreg":1,"op":"eq","cmpdata":{"data_reg":{"type":"value","len":4,"data0":"0x000003e8"}}},{"type":"counter","pkts":0,"bytes":0}]}}