Skip to content

Commit

Permalink
[NETFILTER] x_tables: Make XT_ALIGN align as strictly as necessary.
Browse files Browse the repository at this point in the history
Or else we break on ppc32 and other 32-bit platforms.

Based upon a patch from Harald Welte.

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed Jan 20, 2006
1 parent cf9e50a commit 4f2d768
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/linux/netfilter/x_tables.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ struct xt_get_revision
/* For standard target */
#define XT_RETURN (-NF_REPEAT - 1)

#define XT_ALIGN(s) (((s) + (__alignof__(void *)-1)) & ~(__alignof__(void *)-1))
#define XT_ALIGN(s) (((s) + (__alignof__(u_int64_t)-1)) & ~(__alignof__(u_int64_t)-1))

/* Standard return verdict, or do jump. */
#define XT_STANDARD_TARGET ""
Expand Down

0 comments on commit 4f2d768

Please sign in to comment.