Skip to contentSkip to conversation

iptables-save saves hashlimit rules with error

PATCH Applied Phil Oester 2 participants 2 messages Aug 2, 2008 – Aug 4, 2008 netfilter

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 iptables-save saves hashlimit rules with error

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

Phil

Patch-from: Xeb <[email protected]>

extensions/libxt_hashlimit.c +1 -1
diff -ur iptables-1.4.0.orig/extensions/libxt_hashlimit.c iptables-1.4.0/extensions/libxt_hashlimit.c
@@ -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);
 }
#1 lore raw
Quoted 2 lines · Phil Oester

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

Applied, thanks.