iptables-1.3.2-20050720
[iptables.git] / extensions / libipt_DSCP.c
index f3bf079..90e2a34 100644 (file)
@@ -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)