aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/csource/generated.go
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2020-10-15 09:28:58 +0200
committerDmitry Vyukov <dvyukov@google.com>2020-10-15 09:50:12 +0200
commit638690213ad14c862fe8eca5c0629eaca46749f8 (patch)
tree46ab9454552342212a1502ce41b4148f60590ab7 /pkg/csource/generated.go
parenta83184a9374f9e15abe09dd727d2c2d5c82e1349 (diff)
executor: fix arp netfiler tables alignment for arm
The arp netfilter entry contains u64, but we used only void* to enforce alignment. This worked everywhere except for arm, which is 32-bits and has 8-byte alignment for u64. Use u64 to enforce correct alignment. Fixes #2188
Diffstat (limited to 'pkg/csource/generated.go')
-rw-r--r--pkg/csource/generated.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/pkg/csource/generated.go b/pkg/csource/generated.go
index ff758df9b..062398673 100644
--- a/pkg/csource/generated.go
+++ b/pkg/csource/generated.go
@@ -7215,7 +7215,7 @@ struct ipt_getinfo {
struct ipt_get_entries {
char name[32];
unsigned int size;
- void* entrytable[XT_TABLE_SIZE / sizeof(void*)];
+ uint64 entrytable[XT_TABLE_SIZE / sizeof(uint64)];
};
struct ipt_replace {
@@ -7227,7 +7227,7 @@ struct ipt_replace {
unsigned int underflow[5];
unsigned int num_counters;
struct xt_counters* counters;
- char entrytable[XT_TABLE_SIZE];
+ uint64 entrytable[XT_TABLE_SIZE / sizeof(uint64)];
};
struct ipt_table_desc {
@@ -7269,7 +7269,7 @@ struct arpt_getinfo {
struct arpt_get_entries {
char name[32];
unsigned int size;
- void* entrytable[XT_TABLE_SIZE / sizeof(void*)];
+ uint64 entrytable[XT_TABLE_SIZE / sizeof(uint64)];
};
struct arpt_replace {
@@ -7281,7 +7281,7 @@ struct arpt_replace {
unsigned int underflow[3];
unsigned int num_counters;
struct xt_counters* counters;
- char entrytable[XT_TABLE_SIZE];
+ uint64 entrytable[XT_TABLE_SIZE / sizeof(uint64)];
};
struct arpt_table_desc {