[netfilter-cvslog] r3653 - trunk/iptables/extensions
laforge at netfilter.org
laforge at netfilter.org
Mon Feb 7 19:38:50 CET 2005
Author: laforge at netfilter.org
Date: 2005-02-07 19:38:49 +0100 (Mon, 07 Feb 2005)
New Revision: 3653
Modified:
trunk/iptables/extensions/libipt_hashlimit.c
Log:
fix parameter handling in libipt_hashlimit with iptables-save (Nikolai Malykh)
Modified: trunk/iptables/extensions/libipt_hashlimit.c
===================================================================
--- trunk/iptables/extensions/libipt_hashlimit.c 2005-02-04 07:38:02 UTC (rev 3652)
+++ trunk/iptables/extensions/libipt_hashlimit.c 2005-02-07 18:38:49 UTC (rev 3653)
@@ -7,6 +7,8 @@
* Based on ipt_limit.c by
* Jérôme de Vivie <devivie at info.enserb.u-bordeaux.fr>
* Hervé Eychenne <rv at wallfire.org>
+ *
+ * Error corections by nmalykh at bilim.com (22.01.2005)
*/
#include <stdio.h>
@@ -294,7 +296,7 @@
fputs("dstip", stdout);
prevmode = 1;
}
- if (r->cfg.mode & IPT_HASHLIMIT_HASH_SPT) {
+ if (r->cfg.mode & IPT_HASHLIMIT_HASH_DPT) {
if (prevmode)
putchar(separator);
fputs("dstport", stdout);
@@ -334,8 +336,10 @@
if (r->cfg.burst != IPT_HASHLIMIT_BURST)
printf("--hashlimit-burst %u ", r->cfg.burst);
- fputs("--mode ", stdout);
+ fputs("--hashlimit-mode ", stdout);
print_mode(r, ',');
+
+ printf("--hashlimit-name %s ", r->name);
if (r->cfg.size)
printf("--hashlimit-htable-size %u ", r->cfg.size);
More information about the netfilter-cvslog
mailing list