summaryrefslogtreecommitdiffstats
path: root/extensions/libipt_mac.c
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/libipt_mac.c')
-rw-r--r--extensions/libipt_mac.c27
1 files changed, 13 insertions, 14 deletions
diff --git a/extensions/libipt_mac.c b/extensions/libipt_mac.c
index d1079a5..30da7fa 100644
--- a/extensions/libipt_mac.c
+++ b/extensions/libipt_mac.c
@@ -128,20 +128,19 @@ static void save(const struct ipt_ip *ip, const struct ipt_entry_match *match)
print_mac(((struct ipt_mac_info *)match->data)->srcaddr);
}
-static
-struct iptables_match mac
-= { NULL,
- "mac",
- IPTABLES_VERSION,
- IPT_ALIGN(sizeof(struct ipt_mac_info)),
- IPT_ALIGN(sizeof(struct ipt_mac_info)),
- &help,
- &init,
- &parse,
- &final_check,
- &print,
- &save,
- opts
+static struct iptables_match mac = {
+ .next = NULL,
+ .name = "mac",
+ .version = IPTABLES_VERSION,
+ .size = IPT_ALIGN(sizeof(struct ipt_mac_info)),
+ .userspacesize = IPT_ALIGN(sizeof(struct ipt_mac_info)),
+ .help = &help,
+ .init = &init,
+ .parse = &parse,
+ .final_check = &final_check,
+ .print = &print,
+ .save = &save,
+ .extra_opts = opts
};
void _init(void)