From: Phil Oester <kernel@linuxace.com>
To: netfilter-devel@vger.kernel.org
Subject: [PATCH] iptables-save saves hashlimit rules with error
Date: Sat, 2 Aug 2008 09:55:50 -0700 [thread overview]
Message-ID: <20080802165550.GA19111@linuxace.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 207 bytes --]
In bugzilla 550, Xeb notes that the --hashlimit-htable-gcinterval argument
is saved incorrectly. Patch below corrects.
Phil
Patch-from: Xeb <xeb@mail.ru>
Signed-off-by: Phil Oester <kernel@linuxace.com>
[-- Attachment #2: patch-hashlimit --]
[-- Type: text/plain, Size: 660 bytes --]
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);
}
next reply other threads:[~2008-08-02 16:55 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-02 16:55 Phil Oester [this message]
2008-08-04 11:29 ` [PATCH] iptables-save saves hashlimit rules with error Patrick McHardy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080802165550.GA19111@linuxace.com \
--to=kernel@linuxace.com \
--cc=netfilter-devel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox