]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
libipt_ULOG: fix --ulog-cprange
authorPablo Neira Ayuso <pablo@netfilter.org>
Tue, 8 May 2012 22:28:41 +0000 (00:28 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 8 May 2012 22:34:44 +0000 (00:34 +0200)
In 1f2474a libipt_ULOG: use guided option parser.

A bug has been accidentally introduced in --ulog-cprange, limiting
possible values from 1 to 50. However, that limit should be applied
to --ulog-qthreshold.

Reported-by: Gaurav Sinha <vgsinha@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
extensions/libipt_ULOG.c

index e08ae0568bb2272be9e995698ccaf5644bed5fc4..fafb220b8cc2eddd68ca3bc73edc9ff809f3f956 100644 (file)
@@ -37,9 +37,9 @@ static const struct xt_option_entry ULOG_opts[] = {
        {.name = "ulog-prefix", .id = O_ULOG_PREFIX, .type = XTTYPE_STRING,
         .flags = XTOPT_PUT, XTOPT_POINTER(struct ipt_ulog_info, prefix),
         .min = 1},
-       {.name = "ulog-cprange", .id = O_ULOG_CPRANGE, .type = XTTYPE_UINT64,
+       {.name = "ulog-cprange", .id = O_ULOG_CPRANGE, .type = XTTYPE_UINT64},
+       {.name = "ulog-qthreshold", .id = O_ULOG_QTHR, .type = XTTYPE_UINT64,
         .min = 1, .max = ULOG_MAX_QLEN},
-       {.name = "ulog-qthreshold", .id = O_ULOG_QTHR, .type = XTTYPE_UINT64},
        XTOPT_TABLEEND,
 };