X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=extensions%2Flibipt_DSCP.c;h=90e2a344067ed5d1e3b8f2af0dcc2b46ffb1dfe7;hb=6afea0b41dfbc3824956d11d960ad80097218feb;hp=f3bf07915b59ea79b56adadc2c11d6635a9874ab;hpb=f7b70cf9e00324b89b02de213bcd0dde7044d035;p=iptables.git diff --git a/extensions/libipt_DSCP.c b/extensions/libipt_DSCP.c index f3bf079..90e2a34 100644 --- a/extensions/libipt_DSCP.c +++ b/extensions/libipt_DSCP.c @@ -35,7 +35,7 @@ static void help(void) " or in hex (ex: 0x20)\n" " --set-dscp-class class Set the DSCP field in packet header to the\n" " value represented by the DiffServ class value.\n" -" This class may be EF,BE or any of the CSxx " +" This class may be EF,BE or any of the CSxx\n" " or AFxx classes.\n" "\n" " These two options are mutually exclusive !\n" @@ -143,20 +143,19 @@ save(const struct ipt_ip *ip, const struct ipt_entry_target *target) printf("--set-dscp 0x%02x ", dinfo->dscp); } -static -struct iptables_target dscp -= { NULL, - "DSCP", - IPTABLES_VERSION, - IPT_ALIGN(sizeof(struct ipt_DSCP_info)), - IPT_ALIGN(sizeof(struct ipt_DSCP_info)), - &help, - &init, - &parse, - &final_check, - &print, - &save, - opts +static struct iptables_target dscp = { + .next = NULL, + .name = "DSCP", + .version = IPTABLES_VERSION, + .size = IPT_ALIGN(sizeof(struct ipt_DSCP_info)), + .userspacesize = IPT_ALIGN(sizeof(struct ipt_DSCP_info)), + .help = &help, + .init = &init, + .parse = &parse, + .final_check = &final_check, + .print = &print, + .save = &save, + .extra_opts = opts }; void _init(void)