X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=extensions%2Flibipt_TOS.c;fp=extensions%2Flibipt_TOS.c;h=4302950d615d56b58494dba2bd5e7a76d9ccd894;hb=6afea0b41dfbc3824956d11d960ad80097218feb;hp=87c38161d8a603f737efb498679cdba368457d48;hpb=f7b70cf9e00324b89b02de213bcd0dde7044d035;p=iptables.git diff --git a/extensions/libipt_TOS.c b/extensions/libipt_TOS.c index 87c3816..4302950 100644 --- a/extensions/libipt_TOS.c +++ b/extensions/libipt_TOS.c @@ -153,20 +153,19 @@ save(const struct ipt_ip *ip, const struct ipt_entry_target *target) printf("--set-tos 0x%02x ", tosinfo->tos); } -static -struct iptables_target tos -= { NULL, - "TOS", - IPTABLES_VERSION, - IPT_ALIGN(sizeof(struct ipt_tos_target_info)), - IPT_ALIGN(sizeof(struct ipt_tos_target_info)), - &help, - &init, - &parse, - &final_check, - &print, - &save, - opts +static struct iptables_target tos = { + .next = NULL, + .name = "TOS", + .version = IPTABLES_VERSION, + .size = IPT_ALIGN(sizeof(struct ipt_tos_target_info)), + .userspacesize = IPT_ALIGN(sizeof(struct ipt_tos_target_info)), + .help = &help, + .init = &init, + .parse = &parse, + .final_check = &final_check, + .print = &print, + .save = &save, + .extra_opts = opts }; void _init(void)