From: Patrick McHardy <kaber@trash.net>
To: Jan Engelhardt <jengelh@medozas.de>
Cc: Bart De Schuymer <bdschuym@pandora.be>,
Netfilter Developer Mailing List
<netfilter-devel@vger.kernel.org>,
David Miller <davem@davemloft.net>
Subject: Re: Alignment problem with ebt_among
Date: Wed, 10 Sep 2008 16:23:06 +0200 [thread overview]
Message-ID: <48C7D84A.2010703@trash.net> (raw)
In-Reply-To: <alpine.LNX.1.10.0809100931120.24942@fbirervta.pbzchgretzou.qr>
Jan Engelhardt wrote:
> But due to continued lack of alignment of the entire thing (e.g.
> EBT_ALIGN(, I cannot rule out that
> alignment-sensitive architectures like sparc64 continue choke on it.
> (Due to lack of such machines, I am unable to test)
>
> What we would need is, IMO,
>
> new_size = old_size + EBT_ALIGN(ebt_mac_wormhash_size(wh);
> h = malloc(new_size);
>
> but this of course breaks the binary interface between userspace and
> kernel. Possible solutions I can think of:
>
> (a) kill ebt_among
> (b) willingly change it and break ABI
> (c) continue planned transformation to Xtables and fix later
>
> Which should it be?
How about:
(d) add compat support to ebtables, transform to xtables,
add compat translation
Compat support is needed anyway to properly run in a mixed
environment since most of the setsockopt argument structs
are not clean either.
next prev parent reply other threads:[~2008-09-10 14:23 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-10 14:07 Alignment problem with ebt_among Jan Engelhardt
2008-09-10 14:23 ` Patrick McHardy [this message]
2008-09-10 14:29 ` Jan Engelhardt
2008-09-10 14:43 ` Patrick McHardy
2008-10-06 0:57 ` Jan Engelhardt
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=48C7D84A.2010703@trash.net \
--to=kaber@trash.net \
--cc=bdschuym@pandora.be \
--cc=davem@davemloft.net \
--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