From 08d47756d0a89616bd2d134de46e5f613f293e2b Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Sun, 28 Jan 2018 09:17:03 +0100 Subject: executor: fix 32-bit support ipt_get_entries.entrytable must be pointer aligned, so in 32-bit build there is no padding before it. --- pkg/csource/linux_common.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'pkg') diff --git a/pkg/csource/linux_common.go b/pkg/csource/linux_common.go index 49d7df124..b02e61188 100644 --- a/pkg/csource/linux_common.go +++ b/pkg/csource/linux_common.go @@ -2003,8 +2003,7 @@ struct ipt_getinfo { struct ipt_get_entries { char name[32]; unsigned int size; - unsigned int pad; - char entrytable[1024]; + void* entrytable[1024 / sizeof(void*)]; }; struct xt_counters { -- cgit mrf-deployment