meta-openembedded/meta-networking/recipes-filter
Roy Li e4dee444c0 ebtables: enable KERNEL_64_USERSPACE_32 for powerpc
Enable KERNEL_64_USERSPACE_32 when powerpc is using 64bit kernel and 32bit
userspace.

Some structs, which is used to communicate between user space and kernel,
have the alignment issue on 64bit kernel with 32 bit userspace. To fix
this issue, ebtables redefines these struct, not use the kernel(sysroot)
include/uapi/linux/netfilter_bridge/ebtables.h, like ebt_entry_target:

The kernel's:
struct ebt_entry_target {
       union {
               char name[EBT_FUNCTION_MAXNAMELEN];
               struct xt_target *target;
       } u;
       /* size of data */
       unsigned int target_size;
       unsigned char data[0] __attribute__ ((aligned (__alignof__(struct ebt_replace))));
};

The ebtables:
struct ebt_entry_target
{
        union {
                char name[EBT_FUNCTION_MAXNAMELEN];
                struct ebt_target *target;
        } u;
        /* size of data */
        unsigned int target_size;
|#ifdef KERNEL_64_USERSPACE_32
        unsigned int pad;
|#endif
        unsigned char data[0] __attribute__ ((aligned (__alignof__(struct ebt_replace))));
};

If the MLPREFIX of package matchs "lib.?32", the 32bit multilib package on
64bit kernel is being built, then enable KERNEL_64_USERSPACE_32.

Signed-off-by: Roy Li <rongqing.li@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
2016-02-29 16:23:35 -05:00
..
conntrack-tools conntrack-tools: upgrade to 1.4.2 2015-09-11 13:33:54 -04:00
ebtables ebtables: enable KERNEL_64_USERSPACE_32 for powerpc 2016-02-29 16:23:35 -05:00
libmnl meta-networking: standardize SECTION values 2015-06-05 20:42:25 -04:00
libnetfilter libnetfilter: Avoid using VLAs 2015-10-21 15:59:03 -04:00
libnfnetlink meta-networking: standardize SECTION values 2015-06-05 20:42:25 -04:00
libnftnl libnftnl: update from 1.0.3 to 1.0.5 2015-10-21 15:59:04 -04:00
nftables nftables: update nftables userland tools from 0.4 to 0.5 2015-10-21 15:59:04 -04:00