netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Pablo Neira Ayuso <pablo@netfilter.org>
To: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com>
Cc: Netfilter Development Mailing list
	<netfilter-devel@vger.kernel.org>,
	Giuseppe Longo <giuseppelng@gmail.com>
Subject: Re: [ebtables-compat-experimental5 PATCH] iptables: xtables-eb: fix renaming of chains
Date: Mon, 24 Nov 2014 19:58:46 +0100	[thread overview]
Message-ID: <20141124185846.GA15664@salvia> (raw)
In-Reply-To: <CAOkSjBha3BuK0HvwSgp+9-xcRrHfbxKasrOcne91ZOJEVY7kzg@mail.gmail.com>

On Mon, Nov 24, 2014 at 07:27:40PM +0100, Arturo Borrero Gonzalez wrote:
> On 20 November 2014 at 13:20, Pablo Neira Ayuso <pablo@netfilter.org> wrote:
> >> diff --git a/iptables/xtables-eb-standalone.c b/iptables/xtables-eb-standalone.c
> >> index 1c3cbf0..740a420 100644
> >> --- a/iptables/xtables-eb-standalone.c
> >> +++ b/iptables/xtables-eb-standalone.c
> >> @@ -84,7 +84,7 @@ int xtables_eb_main(int argc, char *argv[])
> >>               ret = nft_commit(&h);
> >>
> >>       if (!ret)
> >> -             fprintf(stderr, "%s\n", nft_strerror(errno));
> >> +             xtables_error(OTHER_PROBLEM, "%s\n", nft_strerror(errno));
> >
> > IIRC error reporting in ebtables differs from iptables. The output
> > should look the same. We're currently using nft_strerror() but I guess
> > we'll need a ebt_strerror() function.
> >
> 
> I've tried to collect ebtables original errors. Most of them uses
> arguments, for example:
>  * Can't delete the chain 'test', it's referenced in chain 'FORWARD', rule 0.
>  * Loop from chain 'test2' to chain 'test'.
> 
> So, that ebt_strerror() function seems almost useless.
> 
> I will resend this patch with the changes you requested. I guess we
> can revisit that issue in the future.

Sure, please go ahead. Just document limitations, just in case we
revisit this later on. Thanks.

      reply	other threads:[~2014-11-24 18:56 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-20 12:09 [ebtables-compat-experimental5 PATCH] iptables: xtables-eb: fix renaming of chains Arturo Borrero Gonzalez
2014-11-20 12:20 ` Pablo Neira Ayuso
2014-11-24 18:27   ` Arturo Borrero Gonzalez
2014-11-24 18:58     ` Pablo Neira Ayuso [this message]

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=20141124185846.GA15664@salvia \
    --to=pablo@netfilter.org \
    --cc=arturo.borrero.glez@gmail.com \
    --cc=giuseppelng@gmail.com \
    --cc=netfilter-devel@vger.kernel.org \
    /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).