From 5e22c9c592f021eb911a881929a25f5d29146f06 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Fri, 5 Jun 2015 13:52:10 +0200 Subject: [PATCH] xt_ACCOUNT: avoid implicit padding in struct ipt_acc_handle_ip Make the structure size so that an ILP32 environment has no problem taking the raw bytes from an LP64 one. --- extensions/ACCOUNT/xt_ACCOUNT.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/ACCOUNT/xt_ACCOUNT.h b/extensions/ACCOUNT/xt_ACCOUNT.h index b0afd31..6ffba55 100644 --- a/extensions/ACCOUNT/xt_ACCOUNT.h +++ b/extensions/ACCOUNT/xt_ACCOUNT.h @@ -59,7 +59,7 @@ struct ipt_acc_handle_sockopt { Used for every IP when returning data */ struct ipt_acc_handle_ip { - __be32 ip; + __be32 ip, __dummy; uint64_t src_packets; uint64_t src_bytes; uint64_t dst_packets;