summaryrefslogtreecommitdiffstats
path: root/tests/xmlfiles/28-rule-log.xml
diff options
context:
space:
mode:
authorArturo Borrero <arturo.borrero.glez@gmail.com>2013-07-25 22:44:40 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2013-07-25 22:55:44 +0200
commit02295f3d01d13adba9fefeb7b9a40ea379aded1b (patch)
tree608134747cebe3518cccec8e9b4fc16158cd0503 /tests/xmlfiles/28-rule-log.xml
parentab12dcd69bc56897f3138d2ead5294f775238166 (diff)
tests: xml: add realistic XML tests files
This patch refresh current XML testfiles with some realworld expressions extracted from rules. The nft instruction itself is added as a comment for future references. All XMl files are now indented with tabs instead of spaces. Also, a bunch of new realworld rules with mixed expressions are added. I used this command to get the XML formatted with tabs: $ export XMLLINT_INDENT=$'\t' $ xmllint --format file.xml The xmllint tool is included in the libxml2-utils package (at least on debian systems). Signed-off-by: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests/xmlfiles/28-rule-log.xml')
-rw-r--r--tests/xmlfiles/28-rule-log.xml17
1 files changed, 9 insertions, 8 deletions
diff --git a/tests/xmlfiles/28-rule-log.xml b/tests/xmlfiles/28-rule-log.xml
index e33ff25..a8e4a42 100644
--- a/tests/xmlfiles/28-rule-log.xml
+++ b/tests/xmlfiles/28-rule-log.xml
@@ -1,9 +1,10 @@
-<rule family="ip6" table="filter" chain="INPUT" handle="100" version="0">
- <rule_flags>0</rule_flags>
- <expr type="log">
- <group>10</group>
- <snaplen>4000000</snaplen>
- <qthreshold>1222222</qthreshold>
- <prefix>prefixtest</prefix>
- </expr>
+<rule family="ip6" table="filter" chain="test" handle="96" version="0">
+ <rule_flags>0</rule_flags>
+ <expr type="log">
+ <prefix>test_chain</prefix>
+ <group>1</group>
+ <snaplen>0</snaplen>
+ <qthreshold>0</qthreshold>
+ </expr>
</rule>
+<!-- nft add rule ip6 filter test log prefix test_chain group 1 -->