Commit 0a026046 authored by Alexey Dobriyan's avatar Alexey Dobriyan Committed by Patrick McHardy

netfilter: xtables: consistent struct compat_xt_counters definition

There is compat_u64 type which deals with different u64 type alignment
on different compat-capable platforms, so use it and removed some
hardcoded assumptions.
Signed-off-by: default avatarAlexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: default avatarPatrick McHardy <kaber@trash.net>
parent 9ab99d5a
...@@ -562,11 +562,7 @@ struct compat_xt_entry_target { ...@@ -562,11 +562,7 @@ struct compat_xt_entry_target {
* current task alignment */ * current task alignment */
struct compat_xt_counters { struct compat_xt_counters {
#if defined(CONFIG_X86_64) || defined(CONFIG_IA64) compat_u64 pcnt, bcnt; /* Packet and byte counters */
u_int32_t cnt[4];
#else
u_int64_t cnt[2];
#endif
}; };
struct compat_xt_counters_info { struct compat_xt_counters_info {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment