1
0
Fork 0
alistair23-linux/include/linux/netfilter_bridge
Joerg Willmann 88ba136d66 netfilter: ebtables: fix alignment problem in ppc
ebt_among extension of ebtables uses __alignof__(_xt_align) while the
corresponding kernel module uses __alignof__(ebt_replace) to determine
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

ebtables fails to add rules which use the among extension.

I'm using kernel 2.6.33 and ebtables 2.0.10-4

According to Bart De Schuymer, userspace alignment was changed to
_xt_align to fix an alignment issue on a userspace32-kernel64 system
(he thinks it was for an ARM device). So userspace must be right.
The kernel alignment macro needs to change so it also uses _xt_align
instead of ebt_replace. The userspace changes date back from
June 29, 2009.

Signed-off-by: Joerg Willmann <joe@clnt.de>
Signed-off by: Bart De Schuymer <bdschuym@pandora.be>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
2012-02-21 13:29:06 +01:00
..
Kbuild netfilter: install missing ebtables headers for userspace 2010-10-18 11:22:05 +02:00
ebt_802_3.h netfilter: xtables: add missing header inclusions for headers_check 2011-01-20 17:50:17 +01:00
ebt_among.h netfilter: xtables: add missing header inclusions for headers_check 2011-01-20 17:50:17 +01:00
ebt_arp.h netfilter: xtables: add missing header inclusions for headers_check 2011-01-20 17:50:17 +01:00
ebt_arpreply.h
ebt_ip.h netfilter: xtables: add missing header inclusions for headers_check 2011-01-20 17:50:17 +01:00
ebt_ip6.h netfilter: xtables: add missing header inclusions for headers_check 2011-01-20 17:50:17 +01:00
ebt_limit.h netfilter: xtables: add missing header inclusions for headers_check 2011-01-20 17:50:17 +01:00
ebt_log.h netfilter: xtables: add missing header inclusions for headers_check 2011-01-20 17:50:17 +01:00
ebt_mark_m.h netfilter: xtables: add missing header inclusions for headers_check 2011-01-20 17:50:17 +01:00
ebt_mark_t.h
ebt_nat.h
ebt_nflog.h netfilter: xtables: add missing header inclusions for headers_check 2011-01-20 17:50:17 +01:00
ebt_pkttype.h netfilter: xtables: add missing header inclusions for headers_check 2011-01-20 17:50:17 +01:00
ebt_redirect.h
ebt_stp.h netfilter: xtables: add missing header inclusions for headers_check 2011-01-20 17:50:17 +01:00
ebt_ulog.h netfilter: xtables: add missing header inclusions for headers_check 2011-01-20 17:50:17 +01:00
ebt_vlan.h netfilter: xtables: add missing header inclusions for headers_check 2011-01-20 17:50:17 +01:00
ebtables.h netfilter: ebtables: fix alignment problem in ppc 2012-02-21 13:29:06 +01:00