[lkml]   [2006]   [Jan]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH] x_tables: fix alignment on [at least] ppc32
    From: Harald Welte <>
    Date: Fri, 20 Jan 2006 01:45:12 +0100

    > [NETFILTER] x_tables: Fix XT_ALIGN() macro on [at least] ppc32
    > To keep backwards compatibility with old iptables userspace programs,
    > the new XT_ALIGN macro always has to return the same value as IPT_ALIGN,
    > IP6T_ALIGN or ARPT_ALIGN in previous kernels.
    > However, in those kernels the macro was defined in dependency to the
    > respective layer3 specifi data structures, which we can no longer do with
    > x_tables.
    > The fix is an ugly kludge, but it has been tested to solve the problem. Yet
    > another reason to move away from the current {ip,ip6,arp,eb}tables like
    > data structures.
    > Signed-off-by: Harald Welte <>

    Harald, I'm going to modify this to just use u_int64_t as that
    should be totally sufficient.

    It is the largest type, and will produce the desired results without
    the silly structure.

    Some malloc() implementations use "long double" to figure out the
    largest type size and alignment requirements any C type might have
    on the machine. But there is no reason to use that here.
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2006-01-20 01:59    [W:0.019 / U:52.480 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site