summaryrefslogtreecommitdiffstats
path: root/extensions/libipt_ECN.c
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2010-08-03 17:21:18 +0200
committerPatrick McHardy <kaber@trash.net>2010-08-03 17:21:18 +0200
commita653f2936c56bfc541f13a7888484d5ae21c057a (patch)
tree6cd810640b26d9c3c330c4538424edbcc5570285 /extensions/libipt_ECN.c
parentd8b511ed36f00280dd141e59c08874c7fb116504 (diff)
parent422342e47c18e70757231f2210b13df8e1f5931c (diff)
Merge branch 'iptables-next'
Diffstat (limited to 'extensions/libipt_ECN.c')
-rw-r--r--extensions/libipt_ECN.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/extensions/libipt_ECN.c b/extensions/libipt_ECN.c
index bf1f8a5a..75ea0114 100644
--- a/extensions/libipt_ECN.c
+++ b/extensions/libipt_ECN.c
@@ -8,6 +8,7 @@
*
* $Id$
*/
+#include <stdbool.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
@@ -32,11 +33,11 @@ static void ECN_help(void)
static const struct option ECN_opts[] = {
- { "ecn-tcp-remove", 0, NULL, 'F' },
- { "ecn-tcp-cwr", 1, NULL, 'G' },
- { "ecn-tcp-ece", 1, NULL, 'H' },
- { "ecn-ip-ect", 1, NULL, '9' },
- { .name = NULL }
+ {.name = "ecn-tcp-remove", .has_arg = false, .val = 'F'},
+ {.name = "ecn-tcp-cwr", .has_arg = true, .val = 'G'},
+ {.name = "ecn-tcp-ece", .has_arg = true, .val = 'H'},
+ {.name = "ecn-ip-ect", .has_arg = true, .val = '9'},
+ XT_GETOPT_TABLEEND,
};
static int ECN_parse(int c, char **argv, int invert, unsigned int *flags,