summaryrefslogtreecommitdiffstats
path: root/extensions/libxt_CT.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/libxt_CT.c
parentd8b511ed36f00280dd141e59c08874c7fb116504 (diff)
parent422342e47c18e70757231f2210b13df8e1f5931c (diff)
Merge branch 'iptables-next'
Diffstat (limited to 'extensions/libxt_CT.c')
-rw-r--r--extensions/libxt_CT.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/extensions/libxt_CT.c b/extensions/libxt_CT.c
index 6be6ea05..8952b757 100644
--- a/extensions/libxt_CT.c
+++ b/extensions/libxt_CT.c
@@ -1,3 +1,4 @@
+#include <stdbool.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
@@ -28,12 +29,12 @@ enum ct_options {
};
static const struct option ct_opts[] = {
- { "notrack", 0, NULL, CT_OPT_NOTRACK },
- { "helper", 1, NULL, CT_OPT_HELPER },
- { "ctevents", 1, NULL, CT_OPT_CTEVENTS },
- { "expevents", 1, NULL, CT_OPT_EXPEVENTS },
- { "zone", 1, NULL, CT_OPT_ZONE },
- { .name = NULL },
+ {.name = "notrack", .has_arg = false, .val = CT_OPT_NOTRACK},
+ {.name = "helper", .has_arg = true, .val = CT_OPT_HELPER},
+ {.name = "ctevents", .has_arg = true, .val = CT_OPT_CTEVENTS},
+ {.name = "expevents", .has_arg = true, .val = CT_OPT_EXPEVENTS},
+ {.name = "zone", .has_arg = true, .val = CT_OPT_ZONE},
+ XT_GETOPT_TABLEEND,
};
struct event_tbl {