From: Massimiliano Hofer <max@nucleus.it>
To: netfilter-devel@lists.netfilter.org
Subject: Re: [PATCH] entry_data
Date: Sun, 18 Jun 2006 00:55:22 +0200 [thread overview]
Message-ID: <200606180055.25350.max@nucleus.it> (raw)
In-Reply-To: <448FD0F6.3010506@anduras.de>
On Wednesday 14 June 2006 11:03 am, Sven Anders wrote:
> > As explained in my previous posts the purpose of this patch is to give
> > matches the opportunity to store entry specific data. Several matches
> > already achieve this reserving some space in the data fields, but these
> > come from userspace and I don't think it is the Right Way(TM) to do it.
>
> Does this mean we can reuse these fields for other puroposes without
> breaking compatibility with iptables?
Yes, with some caveats.
> I'm particularly interested in adding a negation to the "limit" match and I
> think the match is using one of these special data fields...
>
> > /* Ugly, ugly fucker. */
> > struct xt_rateinfo *master;
>
> If this gives us the possibility to add the negation, who do we distinguish
> between the old and new limit version. In other words: Who do we reach a
> maximum compatibility?
In your case, the current version doesn't use master in userspace and
immediately wipes it in kernel space.
You could just replace it with another field (without changing the total
size), start using it in the new libipt_limit and detect it accordingly from
userspace while using my patch for the real master (supposing my patch is
accepted).
This would never lead to a crash, but the new userspace wouldn't be able to
distinguish if it has an appropriate kernel and it may silently drop the
negation with older versions.
For this purpose you could use the revision field and set a higher minum
revision when the limit is negated.
This leads me to a more radical proposal. Is there any reason we don't have a
general way to negate matches? It wouldn't be too difficult and we could
implement some new features such as negating the whole set of matches or a
single entry.
We could even abandon the madatory logical AND of every entry and pass a
minterm set (with AND as the default), but maybe this is too general.
--
Saluti,
Massimiliano Hofer
Nucleus
next prev parent reply other threads:[~2006-06-17 22:55 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-04 22:29 [PATCH] entry_data Massimiliano Hofer
2006-06-11 23:19 ` Massimiliano Hofer
2006-06-12 9:50 ` Pablo Neira Ayuso
2006-06-12 12:45 ` Massimiliano Hofer
2006-06-13 15:19 ` Pablo Neira Ayuso
2006-06-13 20:56 ` Massimiliano Hofer
2006-06-19 0:15 ` Pablo Neira Ayuso
2006-06-19 7:02 ` Massimiliano Hofer
2006-06-19 23:37 ` Pablo Neira Ayuso
2006-06-20 1:39 ` Patrick McHardy
2006-06-14 9:03 ` Sven Anders
2006-06-17 22:55 ` Massimiliano Hofer [this message]
2006-06-19 17:45 ` Patrick McHardy
2006-06-19 23:05 ` Massimiliano Hofer
2006-06-20 1:29 ` Patrick McHardy
2006-06-19 17:34 ` Patrick McHardy
2006-06-19 22:35 ` Massimiliano Hofer
2006-06-19 23:13 ` Patrick McHardy
2006-06-20 11:25 ` Massimiliano Hofer
2006-06-20 13:17 ` Patrick McHardy
2006-06-21 0:03 ` [PATCH] priv_data (formerly entry_data) Massimiliano Hofer
2006-06-21 0:30 ` Patrick McHardy
2006-06-21 0:45 ` Massimiliano Hofer
2006-06-21 1:04 ` Patrick McHardy
2006-06-21 8:31 ` Massimiliano Hofer
2006-06-21 23:50 ` Massimiliano Hofer
2006-06-22 15:18 ` Patrick McHardy
2006-06-21 0:33 ` Massimiliano Hofer
2006-06-21 0:42 ` Massimiliano Hofer
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=200606180055.25350.max@nucleus.it \
--to=max@nucleus.it \
--cc=netfilter-devel@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.