From: Samuel Jean <sj-netfilter@cookinglinux.org>
To: jagrelo@novadevices.com
Cc: netfilter@lists.netfilter.org
Subject: Re: Limit module accept negation?
Date: Thu, 13 Jan 2005 20:24:50 -0500 [thread overview]
Message-ID: <41E71F62.30208@cookinglinux.org> (raw)
In-Reply-To: <41E71E70.4080703@cookinglinux.org>
[-- Attachment #1: Type: text/plain, Size: 258 bytes --]
Samuel Jean wrote:
> The patch below is against ipt_limit.c from 2.6.10. It's *untested* but
> reflects what I told you. It's just an exemple of how you can make
> this module behaving the other way arround.
>
Doh! crapy patch. Attached good one. I hope.
[-- Attachment #2: ipt_limit.patch --]
[-- Type: text/x-patch, Size: 337 bytes --]
--- ipt_limit.c.orig 2005-01-13 20:13:19.000000000 -0500
+++ ipt_limit.c 2005-01-13 20:14:10.000000000 -0500
@@ -82,11 +82,11 @@
/* We're not limited. */
r->credit -= r->cost;
spin_unlock_bh(&limit_lock);
- return 1;
+ return 0;
}
spin_unlock_bh(&limit_lock);
- return 0;
+ return 1;
}
/* Precision saver. */
next prev parent reply other threads:[~2005-01-14 1:24 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-11 1:08 Limit module accept negation? Jorge Agrelo
2005-01-12 14:20 ` Samuel Jean
2005-01-14 0:08 ` Jorge Agrelo
2005-01-14 1:20 ` Samuel Jean
2005-01-14 1:24 ` Samuel Jean [this message]
2005-01-14 14:36 ` Jorge Agrelo
2005-01-14 15:06 ` Samuel Jean
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=41E71F62.30208@cookinglinux.org \
--to=sj-netfilter@cookinglinux.org \
--cc=jagrelo@novadevices.com \
--cc=netfilter@lists.netfilter.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.