path: root/src
diff options
authorArturo Borrero <>2013-08-12 09:35:34 +0200
committerPablo Neira Ayuso <>2013-08-12 11:32:28 +0200
commit75a2b33dfb087f620a4778cb2a99fafa37d2a66e (patch)
treefe5ad4d2a4017d01a4122fd5a2d7599aa228b93b /src
parent5d2921bf2e02695cfd48e3779b240d0ac3089857 (diff)
chain: xml: delete <use> node
Since the 'use' attribute in a chain can't be set, ignore it in the XML printing. Signed-off-by: Arturo Borrero Gonzalez <> Signed-off-by: Pablo Neira Ayuso <>
Diffstat (limited to 'src')
1 files changed, 2 insertions, 2 deletions
diff --git a/src/chain.c b/src/chain.c
index a6d99ca..e2296d3 100644
--- a/src/chain.c
+++ b/src/chain.c
@@ -756,11 +756,11 @@ static int nft_chain_snprintf_xml(char *buf, size_t size, struct nft_chain *c)
ret = snprintf(buf, size, "<chain><name>%s</name>"
- "<table>%s</table><prio>%d</prio><use>%d</use>"
+ "<table>%s</table><prio>%d</prio>"
c->name, c->handle, c->bytes, c->packets,
c->type, c->table,
- c->prio, c->use, hooknum2str_array[c->hooknum]);
+ c->prio, hooknum2str_array[c->hooknum]);
SNPRINTF_BUFFER_SIZE(ret, size, len, offset);
/* The parsing will fail both if there are something different