summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorBart De Schuymer <bdschuym@pandora.be>2009-06-21 12:23:36 +0000
committerBart De Schuymer <bdschuym@pandora.be>2009-06-21 12:23:36 +0000
commit872a674d8b1f65cbea54ee5a876cafde0170e34d (patch)
treefb70e59ff460d9b7c75dd17217006f4d69352930 /include
parent3ba0f0a76167c24a62793e7230bcefc65e16b3ea (diff)
fix alignment on userspace32-kernel64 systems (Sachin Sanap)
Diffstat (limited to 'include')
-rw-r--r--include/ebtables_u.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/ebtables_u.h b/include/ebtables_u.h
index 3ba8c05..910c213 100644
--- a/include/ebtables_u.h
+++ b/include/ebtables_u.h
@@ -25,6 +25,7 @@
#define EBTABLES_U_H
#include <netinet/in.h>
#include <linux/netfilter_bridge/ebtables.h>
+#include <linux/netfilter/x_tables.h>
#ifndef IPPROTO_SCTP
#define IPPROTO_SCTP 132
@@ -37,7 +38,7 @@
#define EXEC_STYLE_DAEMON 1
#ifndef EBT_MIN_ALIGN
-#define EBT_MIN_ALIGN (__alignof__(struct ebt_entry_target))
+#define EBT_MIN_ALIGN (__alignof__(struct _xt_align))
#endif
#define EBT_ALIGN(s) (((s) + (EBT_MIN_ALIGN-1)) & ~(EBT_MIN_ALIGN-1))
#define ERRORMSG_MAXLEN 128