Commit 41d63bb6 authored by Patrick McHardy's avatar Patrick McHardy

[NETFILTER]: ip_table_raw C99 initialization

Signed-off-by: default avatarPatrick McHardy <kaber@trash.net>
Signed-off-by: default avatarHarald Welte <laforge@netfilter.org>
Signed-off-by: default avatarDavid S. Miller <davem@redhat.com>
parent e07d39a4
...@@ -32,43 +32,64 @@ static struct ...@@ -32,43 +32,64 @@ static struct
struct ipt_replace repl; struct ipt_replace repl;
struct ipt_standard entries[2]; struct ipt_standard entries[2];
struct ipt_error term; struct ipt_error term;
} initial_table __initdata } initial_table __initdata = {
= { { "raw", RAW_VALID_HOOKS, 3, .repl = {
sizeof(struct ipt_standard) * 2 + sizeof(struct ipt_error), .name = "raw",
{ [NF_IP_PRE_ROUTING] 0, .valid_hooks = RAW_VALID_HOOKS,
[NF_IP_LOCAL_OUT] sizeof(struct ipt_standard) }, .num_entries = 3,
{ [NF_IP_PRE_ROUTING] 0, .size = sizeof(struct ipt_standard) * 2 + sizeof(struct ipt_error),
[NF_IP_LOCAL_OUT] sizeof(struct ipt_standard) }, .hook_entry = {
0, NULL, { } }, [NF_IP_PRE_ROUTING] = 0,
{ [NF_IP_LOCAL_OUT] = sizeof(struct ipt_standard) },
/* PRE_ROUTING */ .underflow = {
{ { { { 0 }, { 0 }, { 0 }, { 0 }, "", "", { 0 }, { 0 }, 0, 0, 0 }, [NF_IP_PRE_ROUTING] = 0,
0, [NF_IP_LOCAL_OUT] = sizeof(struct ipt_standard) },
sizeof(struct ipt_entry), },
sizeof(struct ipt_standard), .entries = {
0, { 0, 0 }, { } }, /* PRE_ROUTING */
{ { { { IPT_ALIGN(sizeof(struct ipt_standard_target)), "" } }, { } }, {
-NF_ACCEPT - 1 } }, .entry = {
/* LOCAL_OUT */ .target_offset = sizeof(struct ipt_entry),
{ { { { 0 }, { 0 }, { 0 }, { 0 }, "", "", { 0 }, { 0 }, 0, 0, 0 }, .next_offset = sizeof(struct ipt_standard),
0, },
sizeof(struct ipt_entry), .target = {
sizeof(struct ipt_standard), .target = {
0, { 0, 0 }, { } }, .u.target_size = IPT_ALIGN(sizeof(struct ipt_standard_target)),
{ { { { IPT_ALIGN(sizeof(struct ipt_standard_target)), "" } }, { } }, },
-NF_ACCEPT - 1 } } .verdict = -NF_ACCEPT - 1,
}, },
/* ERROR */ },
{ { { { 0 }, { 0 }, { 0 }, { 0 }, "", "", { 0 }, { 0 }, 0, 0, 0 },
0, /* LOCAL_OUT */
sizeof(struct ipt_entry), {
sizeof(struct ipt_error), .entry = {
0, { 0, 0 }, { } }, .target_offset = sizeof(struct ipt_entry),
{ { { { IPT_ALIGN(sizeof(struct ipt_error_target)), IPT_ERROR_TARGET } }, .next_offset = sizeof(struct ipt_standard),
{ } }, },
"ERROR" .target = {
} .target = {
} .u.target_size = IPT_ALIGN(sizeof(struct ipt_standard_target)),
},
.verdict = -NF_ACCEPT - 1,
},
},
},
/* ERROR */
.term = {
.entry = {
.target_offset = sizeof(struct ipt_entry),
.next_offset = sizeof(struct ipt_error),
},
.target = {
.target = {
.u.user = {
.target_size = IPT_ALIGN(sizeof(struct ipt_error_target)),
.name = IPT_ERROR_TARGET,
},
},
.errorname = "ERROR",
},
}
}; };
static struct ipt_table packet_raw = { static struct ipt_table packet_raw = {
......
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