diff options
Diffstat (limited to 'extensions/libipt_REJECT.c')
-rw-r--r-- | extensions/libipt_REJECT.c | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/extensions/libipt_REJECT.c b/extensions/libipt_REJECT.c index 8170edd..4b08e45 100644 --- a/extensions/libipt_REJECT.c +++ b/extensions/libipt_REJECT.c @@ -170,20 +170,19 @@ static void save(const struct ipt_ip *ip, const struct ipt_entry_target *target) printf("--reject-with %s ", reject_table[i].name); } -static -struct iptables_target reject -= { NULL, - "REJECT", - IPTABLES_VERSION, - IPT_ALIGN(sizeof(struct ipt_reject_info)), - IPT_ALIGN(sizeof(struct ipt_reject_info)), - &help, - &init, - &parse, - &final_check, - &print, - &save, - opts +static struct iptables_target reject = { + .next = NULL, + .name = "REJECT", + .version = IPTABLES_VERSION, + .size = IPT_ALIGN(sizeof(struct ipt_reject_info)), + .userspacesize = IPT_ALIGN(sizeof(struct ipt_reject_info)), + .help = &help, + .init = &init, + .parse = &parse, + .final_check = &final_check, + .print = &print, + .save = &save, + .extra_opts = opts }; void _init(void) |