From: Pablo Neira Ayuso <pablo@netfilter.org>
To: Massimiliano Hofer <max@nucleus.it>
Cc: netfilter-devel@lists.netfilter.org
Subject: Re: patch for iptables
Date: Tue, 22 Aug 2006 16:53:18 +0200 [thread overview]
Message-ID: <44EB1A5E.9050304@netfilter.org> (raw)
In-Reply-To: <200608221634.13559.max@nucleus.it>
Massimiliano Hofer wrote:
> I was so careful testing my new version of condition for binary compatiblity
> that I didnt't notice it breaks recompilation of the userspace utilities. :)
>
> Here is a patch that uses the new include for the XT version. While I was at
> it, I updated the sanity checks in order to match the module ones.
>
> One caveat: I break compatibility with older kernels that don't have XT.
> What's the policy for backward compatibility in iptables? Shall I put a few
> #ifdefs?
The official policy is "do not break backward" :). IHMO, if we want to
go further with iptables we need to think about providing a netlink API.
For out-of-tree stuff the thing can be different, I have seen breakages
if it really required it. For example, the string match is not
compatible with the old and broken match for 2.4.
Please see below a comment about your patch:
> ------------------------------------------------------------------------
>
> diff -Nru iptables-1.3.5-20060820.orig/extensions/.condition-test iptables-1.3.5-20060820/extensions/.condition-test
> --- iptables-1.3.5-20060820.orig/extensions/.condition-test 2006-08-21 02:22:24.000000000 +0200
> +++ iptables-1.3.5-20060820/extensions/.condition-test 2006-08-21 02:39:15.000000000 +0200
> @@ -1,3 +1,3 @@
> #!/bin/sh
> # True if condition is applied.
> -[ -f $KERNEL_DIR/include/linux/netfilter_ipv4/ipt_condition.h ] && echo condition
> +[ -f $KERNEL_DIR/include/linux/netfilter/xt_condition.h ] && echo condition
You don't need to break it. Just put a dummy ipt_condition.h file that
points to xt_condition.h
--
The dawn of the fourth age of Linux firewalling is coming; a time of
great struggle and heroic deeds -- J.Kadlecsik got inspired by J.Morris
next prev parent reply other threads:[~2006-08-22 14:53 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-22 14:34 patch for iptables Massimiliano Hofer
2006-08-22 14:43 ` Massimiliano Hofer
2006-08-22 14:53 ` Pablo Neira Ayuso [this message]
2006-08-22 14:57 ` Massimiliano Hofer
2006-09-25 15:56 ` Massimiliano Hofer
2006-09-25 23:25 ` Pablo Neira Ayuso
2006-09-26 11:23 ` Massimiliano Hofer
[not found] <19c1b8a90804291101x4544818agde26a61a02036c32@mail.gmail.com>
2008-06-03 23:27 ` Patch " Yasuyuki KOZAKAI
2008-06-04 13:17 ` 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=44EB1A5E.9050304@netfilter.org \
--to=pablo@netfilter.org \
--cc=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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox