From: Pablo Neira Ayuso <pablo@netfilter.org>
To: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
Cc: netfilter-devel@vger.kernel.org
Subject: Re: [iptables-nftables PATCH 2/3] nft: Generalize nft_rule_list() against current family
Date: Wed, 7 Aug 2013 11:00:54 +0200 [thread overview]
Message-ID: <20130807090054.GB6935@localhost> (raw)
In-Reply-To: <1375864297-9347-3-git-send-email-tomasz.bursztyka@linux.intel.com>
On Wed, Aug 07, 2013 at 11:31:36AM +0300, Tomasz Bursztyka wrote:
> Now, firewall rule printing is done through nft_family_ops
> .print_firewall function. This moves generic part for ipv4 and ipv6 into
> nft-shared.c, and enables reusing nft_rule_list() for other family such
> as ARP which will be useful for arptables compatibility tool.
Applied with one nitpick, thanks Tomasz.
> diff --git a/iptables/nft-shared.c b/iptables/nft-shared.c
> index c0ee4c8..ad3e675 100644
> --- a/iptables/nft-shared.c
> +++ b/iptables/nft-shared.c
> @@ -277,6 +281,59 @@ void parse_meta(struct nft_rule_expr *e, uint8_t key, char *iniface,
> }
> }
>
> +const char *nft_parse_target(struct nft_rule *r, const void **targinfo,
> + size_t *target_len)
> +{
> + struct nft_rule_expr_iter *iter;
> + struct nft_rule_expr *expr;
> + const char *targname;
Need targname = NULL, otherwise:
nft-shared.c: In function ‘nft_parse_target’:
nft-shared.c:289:14: warning: ‘targname’ may be used uninitialized in
this function [-Wmaybe-uninitialized
--
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
next prev parent reply other threads:[~2013-08-07 9:00 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-07 8:31 [iptables-nftables PATCH 0/3] Generalize nft_rule_list() (+ 2 fixes) Tomasz Bursztyka
2013-08-07 8:31 ` [iptables-nftables PATCH 1/3] nft: Remove useless test on rulenum in nft_rule_list() Tomasz Bursztyka
2013-08-07 8:59 ` Pablo Neira Ayuso
2013-08-07 8:31 ` [iptables-nftables PATCH 2/3] nft: Generalize nft_rule_list() against current family Tomasz Bursztyka
2013-08-07 9:00 ` Pablo Neira Ayuso [this message]
2013-08-07 9:02 ` Tomasz Bursztyka
2013-08-07 8:31 ` [iptables-nftables PATCH 3/3] nft: Print unknown target data only when relevant Tomasz Bursztyka
2013-08-07 9:01 ` Pablo Neira Ayuso
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130807090054.GB6935@localhost \
--to=pablo@netfilter.org \
--cc=netfilter-devel@vger.kernel.org \
--cc=tomasz.bursztyka@linux.intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).