|
@@ -14,8 +14,7 @@
|
|
#define NAT_VALID_HOOKS ((1 << NF_BR_PRE_ROUTING) | (1 << NF_BR_LOCAL_OUT) | \
|
|
#define NAT_VALID_HOOKS ((1 << NF_BR_PRE_ROUTING) | (1 << NF_BR_LOCAL_OUT) | \
|
|
(1 << NF_BR_POST_ROUTING))
|
|
(1 << NF_BR_POST_ROUTING))
|
|
|
|
|
|
-static struct ebt_entries initial_chains[] =
|
|
|
|
-{
|
|
|
|
|
|
+static struct ebt_entries initial_chains[] = {
|
|
{
|
|
{
|
|
.name = "PREROUTING",
|
|
.name = "PREROUTING",
|
|
.policy = EBT_ACCEPT,
|
|
.policy = EBT_ACCEPT,
|
|
@@ -30,8 +29,7 @@ static struct ebt_entries initial_chains[] =
|
|
}
|
|
}
|
|
};
|
|
};
|
|
|
|
|
|
-static struct ebt_replace_kernel initial_table =
|
|
|
|
-{
|
|
|
|
|
|
+static struct ebt_replace_kernel initial_table = {
|
|
.name = "nat",
|
|
.name = "nat",
|
|
.valid_hooks = NAT_VALID_HOOKS,
|
|
.valid_hooks = NAT_VALID_HOOKS,
|
|
.entries_size = 3 * sizeof(struct ebt_entries),
|
|
.entries_size = 3 * sizeof(struct ebt_entries),
|
|
@@ -50,8 +48,7 @@ static int check(const struct ebt_table_info *info, unsigned int valid_hooks)
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
|
|
-static struct ebt_table frame_nat =
|
|
|
|
-{
|
|
|
|
|
|
+static struct ebt_table frame_nat = {
|
|
.name = "nat",
|
|
.name = "nat",
|
|
.table = &initial_table,
|
|
.table = &initial_table,
|
|
.valid_hooks = NAT_VALID_HOOKS,
|
|
.valid_hooks = NAT_VALID_HOOKS,
|