Linux Netfilter development
 help / color / mirror / Atom feed
From: Patrick McHardy <kaber@trash.net>
To: Jan Engelhardt <jengelh@medozas.de>
Cc: Netfilter Developer Mailing List
	<netfilter-devel@vger.kernel.org>,
	Bart De Schuymer <bdschuym@pandora.be>
Subject: Re: [NETFILTER]: Make Ebtables use Xtables infrastructure
Date: Tue, 09 Sep 2008 08:21:19 +0200	[thread overview]
Message-ID: <48C615DF.4090009@trash.net> (raw)
In-Reply-To: <alpine.LNX.1.10.0809061209150.14936@fbirervta.pbzchgretzou.qr>

Jan Engelhardt wrote:
> commit bf161deb157ce95ac28b534a86fc1b18fe4d9aa4
> Author: Jan Engelhardt <jengelh@medozas.de>
> Date:   Sun Aug 10 22:16:14 2008 -0400
> 
> [NETFILTER]: Make Ebtables use Xtables infrastructure
 > ...
 > 22 files changed, 620 insertions(+), 593 deletions(-)

Nice work, thanks. The patch is really huge though and I would
prefer a slightly more gradual conversion, like first adjust
the return conventions (and only those), than convert to x_tables.

> +MODULE_AUTHOR("Manohar Castelino <manohar.r.castelino@intel.com>");
> +MODULE_AUTHOR("Kuo-Lang Tseng <kuo-lang.tseng@intel.com>");
> +MODULE_AUTHOR("Jan Engelhardt <jengelh@medozas.de>");

Please avoid these unrelated changes, especially in big patches
like this that are supposed to contain only mechanical transformations.

> diff --git a/net/netfilter/x_tables.c b/net/netfilter/x_tables.c
> index aece6c2..f03ced4 100644
> --- a/net/netfilter/x_tables.c
> +++ b/net/netfilter/x_tables.c
> @@ -30,7 +30,7 @@
>  
>  MODULE_LICENSE("GPL");
>  MODULE_AUTHOR("Harald Welte <laforge@netfilter.org>");
> -MODULE_DESCRIPTION("[ip,ip6,arp]_tables backend module");
> +MODULE_DESCRIPTION("{ip,ip6,arp,eb}_tables backend module");
>  
>  #define SMP_ALIGN(x) (((x) + SMP_CACHE_BYTES-1) & ~(SMP_CACHE_BYTES-1))
>  
> @@ -325,7 +325,8 @@ int xt_check_match(const struct xt_match *match, unsigned short family,
>  		   unsigned int size, const char *table, unsigned int hook_mask,
>  		   unsigned short proto, int inv_proto)
>  {
> -	if (XT_ALIGN(match->matchsize) != size) {
> +	/* testing for -1 is temporary until ebtables is fixed up */
> +	if (match->matchsize != -1 && XT_ALIGN(match->matchsize) != size) {

What exactly is the problem here (and when will ebtables be fixed up)?

  parent reply	other threads:[~2008-09-09  6:21 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-06 16:09 [NETFILTER]: Make Ebtables use Xtables infrastructure Jan Engelhardt
2008-09-06 16:09 ` [NETFILTER]: Move ARPREPLY to net/netfilter/ and make it usable from arp_tables Jan Engelhardt
2008-09-06 16:09   ` [NETFILTER]: Make BRIDGE_NF_EBTABLES a menuconfig option Jan Engelhardt
2008-09-09  6:21 ` Patrick McHardy [this message]
2008-09-09 13:16   ` [NETFILTER]: Make Ebtables use Xtables infrastructure Jan Engelhardt
2008-09-09 13:29     ` Patrick McHardy

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=48C615DF.4090009@trash.net \
    --to=kaber@trash.net \
    --cc=bdschuym@pandora.be \
    --cc=jengelh@medozas.de \
    --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