summaryrefslogtreecommitdiffstats
path: root/extensions
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2012-05-09 00:28:41 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2012-05-09 00:34:44 +0200
commit6111382a6c27e73c1cef1777c1253be0453a9dbb (patch)
tree8ad729b01df879905594ce2e7cf700e0b85d59b9 /extensions
parent8db1044ba608a78035bbf89007aab6b6d8ff6f68 (diff)
libipt_ULOG: fix --ulog-cprange
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>
Diffstat (limited to 'extensions')
-rw-r--r--extensions/libipt_ULOG.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/extensions/libipt_ULOG.c b/extensions/libipt_ULOG.c
index e08ae056..fafb220b 100644
--- a/extensions/libipt_ULOG.c
+++ b/extensions/libipt_ULOG.c
@@ -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,
};