Skip to content
Snippets Groups Projects
Commit 4f2d7680 authored by David S. Miller's avatar David S. Miller
Browse files

[NETFILTER] x_tables: Make XT_ALIGN align as strictly as necessary.


Or else we break on ppc32 and other 32-bit platforms.

Based upon a patch from Harald Welte.

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent cf9e50a9
No related branches found
No related tags found
No related merge requests found
...@@ -19,7 +19,7 @@ struct xt_get_revision ...@@ -19,7 +19,7 @@ struct xt_get_revision
/* For standard target */ /* For standard target */
#define XT_RETURN (-NF_REPEAT - 1) #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. */ /* Standard return verdict, or do jump. */
#define XT_STANDARD_TARGET "" #define XT_STANDARD_TARGET ""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment