From c148c4ad2e28b94125c0c9954a887f0a473d598b Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Sun, 21 Aug 2011 09:46:12 +0200 Subject: libxt_hashlimit: default htable-expire must be in milliseconds Bug goes back to v1.4.12~3^2~11. Signed-off-by: Jan Engelhardt --- extensions/libxt_hashlimit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'extensions') diff --git a/extensions/libxt_hashlimit.c b/extensions/libxt_hashlimit.c index a838680c..89320bb3 100644 --- a/extensions/libxt_hashlimit.c +++ b/extensions/libxt_hashlimit.c @@ -315,7 +315,7 @@ static void hashlimit_check(struct xt_fcheck_call *cb) xtables_error(PARAMETER_PROBLEM, "You have to specify --hashlimit"); if (!(cb->xflags & F_HTABLE_EXPIRE)) - info->cfg.expire = udata->mult; + info->cfg.expire = udata->mult * 1000; /* from s to msec */ } static void hashlimit_mt_check(struct xt_fcheck_call *cb) @@ -327,7 +327,7 @@ static void hashlimit_mt_check(struct xt_fcheck_call *cb) xtables_error(PARAMETER_PROBLEM, "You have to specify --hashlimit"); if (!(cb->xflags & F_HTABLE_EXPIRE)) - info->cfg.expire = udata->mult; + info->cfg.expire = udata->mult * 1000; /* from s to msec */ } static const struct rates -- cgit v1.2.3