summaryrefslogtreecommitdiffstats
path: root/extensions/libipt_ttl.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_ttl.c
parentd8b511ed36f00280dd141e59c08874c7fb116504 (diff)
parent422342e47c18e70757231f2210b13df8e1f5931c (diff)
Merge branch 'iptables-next'
Diffstat (limited to 'extensions/libipt_ttl.c')
-rw-r--r--extensions/libipt_ttl.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/extensions/libipt_ttl.c b/extensions/libipt_ttl.c
index e2fbcd5b..34d0f235 100644
--- a/extensions/libipt_ttl.c
+++ b/extensions/libipt_ttl.c
@@ -4,7 +4,7 @@
* $Id$
*
* This program is released under the terms of GNU GPL */
-
+#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -139,11 +139,11 @@ static void ttl_save(const void *ip, const struct xt_entry_match *match)
}
static const struct option ttl_opts[] = {
- { "ttl", 1, NULL, '2' },
- { "ttl-eq", 1, NULL, '2'},
- { "ttl-lt", 1, NULL, '3'},
- { "ttl-gt", 1, NULL, '4'},
- { .name = NULL }
+ {.name = "ttl", .has_arg = true, .val = '2'},
+ {.name = "ttl-eq", .has_arg = true, .val = '2'},
+ {.name = "ttl-lt", .has_arg = true, .val = '3'},
+ {.name = "ttl-gt", .has_arg = true, .val = '4'},
+ XT_GETOPT_TABLEEND,
};
static struct xtables_match ttl_mt_reg = {