From 6111382a6c27e73c1cef1777c1253be0453a9dbb Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Wed, 9 May 2012 00:28:41 +0200 Subject: 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 Signed-off-by: Pablo Neira Ayuso --- extensions/libipt_ULOG.c | 4 ++-- 1 file 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, }; -- cgit v1.2.3