diff options
author | Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com> | 2013-04-29 02:36:07 +0000 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2013-05-03 18:20:06 +0200 |
commit | 1e0d8f7a1ab5a4eed242901af0a9eff645807a55 (patch) | |
tree | 5dd2d1639b444dea04439840a982df0ce1a10335 /src | |
parent | 1c8a6c57b0936ca24fe2dd8455c47d6a2fb5cb7f (diff) |
src: delete exporting internal flags in XML
The uint32_t flags attribute is internal, so no need to
export via XML.
Signed-off-by: Arturo Borrero González <arturo.borrero.glez@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/chain.c | 5 | ||||
-rw-r--r-- | src/table.c | 3 |
2 files changed, 3 insertions, 5 deletions
diff --git a/src/chain.c b/src/chain.c index fb5d218..44a0e66 100644 --- a/src/chain.c +++ b/src/chain.c @@ -452,7 +452,6 @@ static int nft_chain_snprintf_xml(char *buf, size_t size, struct nft_chain *c) "<chain name=\"%s\" handle=\"%lu\"" " bytes=\"%lu\" packets=\"%lu\">" "<properties>" - "<flags>%d</flags>" "<type>%s</type>" "<table>%s</table>" "<prio>%d</prio>" @@ -463,8 +462,8 @@ static int nft_chain_snprintf_xml(char *buf, size_t size, struct nft_chain *c) "</properties>" "</chain>", c->name, c->handle, c->bytes, c->packets, - c->flags, c->type, c->table, c->prio, - c->use, c->hooknum, c->policy, c->family); + c->type, c->table, c->prio, c->use, c->hooknum, + c->policy, c->family); } static int nft_chain_snprintf_default(char *buf, size_t size, struct nft_chain *c) diff --git a/src/table.c b/src/table.c index 2d72136..8adaba8 100644 --- a/src/table.c +++ b/src/table.c @@ -188,11 +188,10 @@ static int nft_table_snprintf_xml(char *buf, size_t size, struct nft_table *t) "<table name=\"%s\">" "<properties>" "<family>%u</family>" - "<flags>%d</flags>" "<table_flags>%d</table_flags>" "</properties>" "</table>" , - t->name, t->family, t->flags, t->table_flags); + t->name, t->family, t->table_flags); } static int nft_table_snprintf_default(char *buf, size_t size, struct nft_table *t) |