]> git.ipfire.org Git - thirdparty/xtables-addons.git/commitdiff
xt_ACCOUNT: avoid implicit padding in struct ipt_acc_handle_ip
authorJan Engelhardt <jengelh@inai.de>
Fri, 5 Jun 2015 11:52:10 +0000 (13:52 +0200)
committerJan Engelhardt <jengelh@inai.de>
Fri, 5 Jun 2015 11:52:45 +0000 (13:52 +0200)
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

index b0afd313a290897cdb8edeac4d11d7660c38b9af..6ffba55ceb1f3bdfa86a902947faf1c5ffd37491 100644 (file)
@@ -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;