From 4d6045630bb90182abf553df1b7f2764a24620b0 Mon Sep 17 00:00:00 2001 From: Arturo Borrero Gonzalez Date: Wed, 22 May 2013 00:33:25 +0000 Subject: examples: XML parsing examples Some code snipplets to add tables/chain/rules using the XML representation. The examples contains: * A binary to parse/add the object using libnftables. * A shellscript to easily call that binary, doing some tests. * table/chain/rule sample XML file. I included my name in new files, but I don't know if this is correct. Please let me know. Instructions: $ cd examples/ ; make nft-table-xml-add # cd test/ ; ./nft-table-xml-add.sh NOTE: Some kernel changes are required to allow reinsert exactly what is printed (handle handling, flags..) Signed-off-by: Arturo Borrero Gonzalez Signed-off-by: Pablo Neira Ayuso --- examples/chain.xml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 examples/chain.xml (limited to 'examples/chain.xml') diff --git a/examples/chain.xml b/examples/chain.xml new file mode 100644 index 0000000..01ccb85 --- /dev/null +++ b/examples/chain.xml @@ -0,0 +1,11 @@ + + + filter + filter
+ 1 + 0 + 4 + 1 + 10 +
+
-- cgit v1.2.3