From 02295f3d01d13adba9fefeb7b9a40ea379aded1b Mon Sep 17 00:00:00 2001 From: Arturo Borrero Date: Thu, 25 Jul 2013 22:44:40 +0200 Subject: 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 Signed-off-by: Pablo Neira Ayuso --- tests/xmlfiles/39-rule-real.xml | 122 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 122 insertions(+) create mode 100644 tests/xmlfiles/39-rule-real.xml (limited to 'tests/xmlfiles/39-rule-real.xml') diff --git a/tests/xmlfiles/39-rule-real.xml b/tests/xmlfiles/39-rule-real.xml new file mode 100644 index 0000000..249160e --- /dev/null +++ b/tests/xmlfiles/39-rule-real.xml @@ -0,0 +1,122 @@ + + 0 + + 1 + iifname + + + 1 + eq + + + 16 + 0x00000000 + 0x00000000 + 0x6f620000 + 0x0030646e + + + + + 1 + oifname + + + 1 + eq + + + 16 + 0x00000000 + 0x62000000 + 0x31646e6f + 0x0037322e + + + + + 1 + 8 + 16 + network + + + 1 + eq + + + 16 + 0xc09a002a + 0x2700cac1 + 0x00000000 + 0x50010000 + + + + + 1 + 6 + 1 + network + + + 1 + eq + + + 1 + 0x00000011 + + + + + 1 + 2 + 2 + transport + + + 1 + eq + + + 2 + 0x00003500 + + + + + 1 + status + 0 + + + 1 + eq + + + 4 + 0x00000001 + + + + + 0 + 0 + + + dns_drop + 2 + 0 + 0 + + + 0 + + + drop + + + + + -- cgit v1.2.3