summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhil Oester <kernel@linuxace.com>2008-08-04 13:28:07 +0200
committerPatrick McHardy <kaber@trash.net>2008-08-04 13:28:07 +0200
commit04c97954d5933fc935616f69a8e63944d5c6cec4 (patch)
treedcb41d9c4f31fc87a3793ef4cc92305357c3936e
parent3c5d15c880c6dca1facf666272fc309b5d307def (diff)
iptables-save: fix hashlimit output
In bugzilla 550, Xeb notes that the --hashlimit-htable-gcinterval argument is saved incorrectly. Patch below corrects. Patch-from: Xeb <xeb@mail.ru> Signed-off-by: Phil Oester <kernel@linuxace.com> Signed-off-by: Patrick McHardy <kaber@trash.net>
-rw-r--r--extensions/libxt_hashlimit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/extensions/libxt_hashlimit.c b/extensions/libxt_hashlimit.c
index 1f34fb98..da9b05f1 100644
--- a/extensions/libxt_hashlimit.c
+++ b/extensions/libxt_hashlimit.c
@@ -614,7 +614,7 @@ static void hashlimit_save(const void *ip, const struct xt_entry_match *match)
if (r->cfg.max)
printf("--hashlimit-htable-max %u ", r->cfg.max);
if (r->cfg.gc_interval != XT_HASHLIMIT_GCINTERVAL)
- printf("--hashlimit-htable-gcinterval %u", r->cfg.gc_interval);
+ printf("--hashlimit-htable-gcinterval %u ", r->cfg.gc_interval);
if (r->cfg.expire != XT_HASHLIMIT_EXPIRE)
printf("--hashlimit-htable-expire %u ", r->cfg.expire);
}