[PATCH] iptables-save saves hashlimit rules with error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



In bugzilla 550, Xeb notes that the --hashlimit-htable-gcinterval argument
is saved incorrectly.  Patch below corrects.

Phil

Patch-from: Xeb <xeb@xxxxxxx>
Signed-off-by: Phil Oester <kernel@xxxxxxxxxxxx>

diff -ur iptables-1.4.0.orig/extensions/libxt_hashlimit.c iptables-1.4.0/extensions/libxt_hashlimit.c
--- iptables-1.4.0.orig/extensions/libxt_hashlimit.c	2007-10-15 16:45:09.000000000 +0400
+++ iptables-1.4.0/extensions/libxt_hashlimit.c	2008-07-18 07:18:06.000000000 +0400
@@ -613,7 +613,7 @@
 	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);
 }

[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux