Commit 5b447af2 authored by Hideaki Yoshifuji's avatar Hideaki Yoshifuji

[NETFILTER]: Fix iptable_raw.c build with older gcc.

parent f4897eb3
...@@ -54,7 +54,9 @@ static struct ...@@ -54,7 +54,9 @@ static struct
}, },
.target = { .target = {
.target = { .target = {
.u.target_size = IPT_ALIGN(sizeof(struct ipt_standard_target)), .u = {
.target_size = IPT_ALIGN(sizeof(struct ipt_standard_target)),
},
}, },
.verdict = -NF_ACCEPT - 1, .verdict = -NF_ACCEPT - 1,
}, },
...@@ -68,7 +70,9 @@ static struct ...@@ -68,7 +70,9 @@ static struct
}, },
.target = { .target = {
.target = { .target = {
.u.target_size = IPT_ALIGN(sizeof(struct ipt_standard_target)), .u = {
.target_size = IPT_ALIGN(sizeof(struct ipt_standard_target)),
},
}, },
.verdict = -NF_ACCEPT - 1, .verdict = -NF_ACCEPT - 1,
}, },
...@@ -82,11 +86,13 @@ static struct ...@@ -82,11 +86,13 @@ static struct
}, },
.target = { .target = {
.target = { .target = {
.u.user = { .u = {
.user = {
.target_size = IPT_ALIGN(sizeof(struct ipt_error_target)), .target_size = IPT_ALIGN(sizeof(struct ipt_error_target)),
.name = IPT_ERROR_TARGET, .name = IPT_ERROR_TARGET,
}, },
}, },
},
.errorname = "ERROR", .errorname = "ERROR",
}, },
} }
......
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