From patchwork Mon Apr 29 12:36:07 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Arturo Borrero X-Patchwork-Id: 240363 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 0EED92C0084 for ; Mon, 29 Apr 2013 22:36:15 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752634Ab3D2MgM (ORCPT ); Mon, 29 Apr 2013 08:36:12 -0400 Received: from smtp3.cica.es ([150.214.5.190]:60451 "EHLO smtp.cica.es" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752044Ab3D2MgM (ORCPT ); Mon, 29 Apr 2013 08:36:12 -0400 Received: from localhost (unknown [127.0.0.1]) by smtp.cica.es (Postfix) with ESMTP id BCA7D51EDA2; Mon, 29 Apr 2013 12:36:09 +0000 (UTC) X-Virus-Scanned: amavisd-new at cica.es Received: from smtp.cica.es ([127.0.0.1]) by localhost (mail.cica.es [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id AQ0yx6zpBkgP; Mon, 29 Apr 2013 14:36:09 +0200 (CEST) Received: from nfdev.cica.es (nfdev.cica.es [IPv6:2a00:9ac0:c1ca:31::220]) by smtp.cica.es (Postfix) with ESMTP id 873A351ED91; Mon, 29 Apr 2013 14:36:09 +0200 (CEST) Subject: [libnftables PATCH 1/2] src: delete exporting internal flags in XML To: netfilter-devel@vger.kernel.org From: Arturo Borrero Cc: pablo@netfilter.org Date: Mon, 29 Apr 2013 14:36:07 +0200 Message-ID: <20130429123607.26114.18073.stgit@nfdev.cica.es> User-Agent: StGit/0.15 MIME-Version: 1.0 Sender: netfilter-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netfilter-devel@vger.kernel.org The uint32_t flags attribute is internal, so no need to export/import in XML. Signed-off-by: Arturo Borrero González --- src/chain.c | 5 ++--- src/table.c | 3 +-- 2 files changed, 3 insertions(+), 5 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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) "" "" - "%d" "%s" "%s
" "%d" @@ -463,8 +462,8 @@ static int nft_chain_snprintf_xml(char *buf, size_t size, struct nft_chain *c) "
" "
", 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) "" "" "%u" - "%d" "%d" "" "
" , - 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)