All of lore.kernel.org
 help / color / mirror / Atom feed
* alignment problem with ebt_among on ppc
@ 2012-02-03  7:21 joe
  2012-02-09 19:22 ` Bart De Schuymer
  0 siblings, 1 reply; 8+ messages in thread
From: joe @ 2012-02-03  7:21 UTC (permalink / raw)
  To: netfilter-devel

hi,

i'm currently faced with an alignment problem of ebt_among with ppc
architecture.
Trying to add a rule using the among extension leads to the following
syslog entry:

ebtables: among: wrong size: 2104 against expected 2100, rounded to 2100

I tried to analyze the problem and I observed that there have been several
problems regarding EBT_ALIGN in the past with x86_64 and sparc
architecure. But I didn't find anything about ppc.

What I've seen is that ebt_among extension of ebtables uses
__alignof__(_xt_align) while the corresponding kernel module uses
__alignof__(ebt_replace) to determin the alignment in EBT_ALIGN().

These are the results of these values on different platforms:

                                 x86     x86_64  ppc
__alignof__(_xt_align)          4       8       8
__alignof__(ebt_replace)        4       8       4

So I assume here we can see why ebtales fails to add rules which use the
among extension.

I'm using kernel 2.6.33 and ebtables 2.0.10-4

Is this a known issue or are there any suggestions how to circumvent this
problem?
Thankyou very much.

Best regards
Joerg

^ permalink raw reply	[flat|nested] 8+ messages in thread
* alignment problem with ebt_among on ppc
@ 2012-02-08  9:27 Joerg Willmann
  0 siblings, 0 replies; 8+ messages in thread
From: Joerg Willmann @ 2012-02-08  9:27 UTC (permalink / raw)
  To: netfilter

Hi,

I'm currently faced with an alignment problem of ebt_among with ppc
architecture.
Trying to add a rule using the among extension leads to the following
syslog entry:

ebtables: among: wrong size: 2104 against expected 2100, rounded to 2100

I tried to analyze the problem and I observed that there have been several
problems regarding EBT_ALIGN in the past with x86_64 and sparc
architecure. But I didn't find anything about ppc.

What I've seen is that ebt_among extension of ebtables uses
__alignof__(_xt_align) while the corresponding kernel module uses
__alignof__(ebt_replace) to determin the alignment in EBT_ALIGN().

These are the results of these values on different platforms:

                                 x86     x86_64  ppc
__alignof__(_xt_align)          4       8       8
__alignof__(ebt_replace)        4       8       4

So I assume here we can see why ebtales fails to add rules which use the
among extension.

I'm using kernel 2.6.33 and ebtables 2.0.10-4

Is this a known issue or are there any suggestions how to circumvent this
problem?
Thankyou very much.

Best regards
Joerg

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2012-02-21 12:32 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-03  7:21 alignment problem with ebt_among on ppc joe
2012-02-09 19:22 ` Bart De Schuymer
2012-02-10 12:17   ` Joerg Willmann
2012-02-10 17:39     ` Jan Engelhardt
2012-02-14 18:31     ` Bart De Schuymer
2012-02-14 19:56       ` Pablo Neira Ayuso
2012-02-21 12:32         ` Pablo Neira Ayuso
  -- strict thread matches above, loose matches on Subject: below --
2012-02-08  9:27 Joerg Willmann

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.