diff options
author | Patrick McHardy <kaber@trash.net> | 2010-08-03 17:21:18 +0200 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2010-08-03 17:21:18 +0200 |
commit | a653f2936c56bfc541f13a7888484d5ae21c057a (patch) | |
tree | 6cd810640b26d9c3c330c4538424edbcc5570285 /extensions/libxt_string.c | |
parent | d8b511ed36f00280dd141e59c08874c7fb116504 (diff) | |
parent | 422342e47c18e70757231f2210b13df8e1f5931c (diff) |
Merge branch 'iptables-next'
Diffstat (limited to 'extensions/libxt_string.c')
-rw-r--r-- | extensions/libxt_string.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/extensions/libxt_string.c b/extensions/libxt_string.c index df6302e8..a6c58813 100644 --- a/extensions/libxt_string.c +++ b/extensions/libxt_string.c @@ -21,6 +21,7 @@ * ipt_string_info. */ #define _GNU_SOURCE 1 +#include <stdbool.h> #include <stdio.h> #include <netdb.h> #include <string.h> @@ -44,13 +45,13 @@ static void string_help(void) } static const struct option string_opts[] = { - { "from", 1, NULL, '1' }, - { "to", 1, NULL, '2' }, - { "algo", 1, NULL, '3' }, - { "string", 1, NULL, '4' }, - { "hex-string", 1, NULL, '5' }, - { "icase", 0, NULL, '6' }, - { .name = NULL } + {.name = "from", .has_arg = true, .val = '1'}, + {.name = "to", .has_arg = true, .val = '2'}, + {.name = "algo", .has_arg = true, .val = '3'}, + {.name = "string", .has_arg = true, .val = '4'}, + {.name = "hex-string", .has_arg = true, .val = '5'}, + {.name = "icase", .has_arg = false, .val = '6'}, + XT_GETOPT_TABLEEND, }; static void string_init(struct xt_entry_match *m) |