From 26e06d838d6471f5233c1da3fee012bf113564a5 Mon Sep 17 00:00:00 2001 From: Arturo Borrero Gonzalez Date: Fri, 8 Feb 2013 17:51:56 +0100 Subject: src: add XML output support Signed-off-by: Arturo Borrero Gonzalez Signed-off-by: Pablo Neira Ayuso --- include/libnftables/chain.h | 1 + include/libnftables/rule.h | 1 + include/libnftables/table.h | 1 + 3 files changed, 3 insertions(+) (limited to 'include') diff --git a/include/libnftables/chain.h b/include/libnftables/chain.h index 8a57732..a7f6a50 100644 --- a/include/libnftables/chain.h +++ b/include/libnftables/chain.h @@ -41,6 +41,7 @@ void nft_chain_nlmsg_build_payload(struct nlmsghdr *nlh, const struct nft_chain enum { NFT_CHAIN_O_DEFAULT = 0, + NFT_CHAIN_O_XML, }; int nft_chain_snprintf(char *buf, size_t size, struct nft_chain *t, uint32_t type, uint32_t flags); diff --git a/include/libnftables/rule.h b/include/libnftables/rule.h index e17799a..50222c5 100644 --- a/include/libnftables/rule.h +++ b/include/libnftables/rule.h @@ -40,6 +40,7 @@ void nft_rule_nlmsg_build_payload(struct nlmsghdr *nlh, struct nft_rule *t); enum { NFT_RULE_O_DEFAULT = 0, + NFT_RULE_O_XML, }; int nft_rule_snprintf(char *buf, size_t size, struct nft_rule *t, uint32_t type, uint32_t flags); diff --git a/include/libnftables/table.h b/include/libnftables/table.h index 1977d91..f367bb8 100644 --- a/include/libnftables/table.h +++ b/include/libnftables/table.h @@ -28,6 +28,7 @@ void nft_table_nlmsg_build_payload(struct nlmsghdr *nlh, const struct nft_table enum { NFT_TABLE_O_DEFAULT = 0, + NFT_TABLE_O_XML, }; int nft_table_snprintf(char *buf, size_t size, struct nft_table *t, uint32_t type, uint32_t flags); -- cgit v1.2.3