summaryrefslogtreecommitdiff
path: root/include/linux/netfilter/nfnetlink_log.h
diff options
context:
space:
mode:
authorHarald Welte <laforge@netfilter.org>2005-08-13 13:55:44 -0700
committerDavid S. Miller <davem@sunset.davemloft.net>2005-08-29 15:57:59 -0700
commit0ba2c6e8c0fb5cde5a23a213c2e7cb851b85c310 (patch)
tree62317e893be4261f456d666efd1105b7871d36b9 /include/linux/netfilter/nfnetlink_log.h
parent17b085eacef81a6286bd478f2ec75e04abb091cb (diff)
[NETFILTER]: introduce and use aligned_u64 data type
As proposed by Andi Kleen, this is required esp. for x86_64 architecture, where 64bit code needs 8byte aligned 64bit data types, but 32bit userspace apps will only align to 4bytes. Signed-off-by: Harald Welte <laforge@netfilter.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/netfilter/nfnetlink_log.h')
-rw-r--r--include/linux/netfilter/nfnetlink_log.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/linux/netfilter/nfnetlink_log.h b/include/linux/netfilter/nfnetlink_log.h
index a61836a083e7..b04b03880595 100644
--- a/include/linux/netfilter/nfnetlink_log.h
+++ b/include/linux/netfilter/nfnetlink_log.h
@@ -5,6 +5,7 @@
* and not any kind of function definitions. It is shared between kernel and
* userspace. Don't put kernel specific stuff in here */
+#include <linux/types.h>
#include <linux/netfilter/nfnetlink.h>
enum nfulnl_msg_types {
@@ -27,8 +28,8 @@ struct nfulnl_msg_packet_hw {
} __attribute__ ((packed));
struct nfulnl_msg_packet_timestamp {
- u_int64_t sec;
- u_int64_t usec;
+ aligned_u64 sec;
+ aligned_u64 usec;
} __attribute__ ((packed));
#define NFULNL_PREFIXLEN 30 /* just like old log target */