summaryrefslogtreecommitdiffstats
path: root/userspace/ebtables2/extensions/ebt_standard.c
diff options
context:
space:
mode:
Diffstat (limited to 'userspace/ebtables2/extensions/ebt_standard.c')
-rw-r--r--userspace/ebtables2/extensions/ebt_standard.c19
1 files changed, 10 insertions, 9 deletions
diff --git a/userspace/ebtables2/extensions/ebt_standard.c b/userspace/ebtables2/extensions/ebt_standard.c
index cd34b56..6a260eb 100644
--- a/userspace/ebtables2/extensions/ebt_standard.c
+++ b/userspace/ebtables2/extensions/ebt_standard.c
@@ -66,15 +66,16 @@ static int compare(const struct ebt_entry_target *t1,
static struct ebt_u_target standard =
{
- EBT_STANDARD_TARGET,
- sizeof(struct ebt_standard_target) - sizeof(struct ebt_entry_target),
- print_help,
- init,
- parse,
- final_check,
- print,
- compare,
- opts
+ .name = EBT_STANDARD_TARGET,
+ .size = sizeof(struct ebt_standard_target) -
+ sizeof(struct ebt_entry_target),
+ .help = print_help,
+ .init = init,
+ .parse = parse,
+ .final_check = final_check,
+ .print = print,
+ .compare = compare,
+ .extra_ops = opts,
};
static void _init(void) __attribute__ ((constructor));